Try this to remove close button on the jQuery UI dialog:
Css Code
$(function(){ //this is your dialog: $('#mydiv').dialog({ // Step 1. Add an extra class to our dialog to address the dialog directly. Make sure that this class is not used anywhere else: dialogClass: 'my-extra-class' }) // Step 2. Hide the close 'X' button on the dialog that you marked with your extra class $('.my-extra-class').find('.ui-dialog-titlebar-close').css('display','none'); // Step 3. Enjoy your dialog without the 'X' link })
To hide the button is to filter it with it’s data-icon attribute:
Wikitechy Founder, Author, International Speaker, and Job Consultant. My role as the CEO of Wikitechy, I help businesses build their next generation digital platforms and help with their product innovation and growth strategy. I'm a frequent speaker at tech conferences and events.
Nice one