[jQuery] Hiding Dialog 'x' button
Hi
I want to hide the 'x' button on the dialog dynamically.
Is there a good way to do it? or is there a setting? i couldnt find one.
All i can think of is doing something like
$(".ui-dialog-titlebar-close").css("display", "none");
However I dont think this is a good way. And if i have more than one dialog on the page then all 'x' buttons will disappear.
Thanks