> 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.
You have to do this dynamically? If not, you can just use a css rule in your stylesheet.