I want to hide a div using Javascript. Below is my div.
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"> <span id="ui-dialog-title-dialog-message" class="ui-dialog-title"> </span> <a class="ui-dialog-titlebar-close ui-corner-all" href="#" role="button"> <span class="ui-icon ui-icon-closethick">close</span> </a> </div> I tried below javascript, but didnt work.
$(".ui-dialog-titlebar").css('display','none'); Any idea?