[dialog] attribute with variable

[dialog] attribute with variable


I love and hate UI Dialog. The love part is quite obvious, the hate
part is due to the difficulty of setting dynamic attributes.
In a recent project, i try to set dynamic title using variable but no
success.
i.e.
var k = "some text"
$("div").dialog({
});