I have hide title bar in jQuery Dialog
as below
$(".ui-dialog-titlebar").hide();
This also hide close button in Dialog
. But i need to show close button on Dialog
.
How can i do this ?
I have hide title bar in jQuery Dialog
as below
$(".ui-dialog-titlebar").hide();
This also hide close button in Dialog
. But i need to show close button on Dialog
.
How can i do this ?
What about just set height to 0? Seemed work for my needs.
Try to show the
ui-dialog-titlebar-close
class ofdialog
And with css (what I am doing)
Adding the following CSS will hide the title text and style, leaving the close button in place - see demo.
However, if you want to change the style of the close button itself (as mentioned in your other question - Arrow in Bottom of jQuery Dialog) then I suggest asking another question since showing the
closeText
is still a problem when using a jQuery theme - see jQuery UI Dialog - Cannot see the closeTextThis works for me:
(Assume your close button has id #close)
Try this one:
See Demo