jQuery selecrors. help for newbie

Posted by Shamanu4 on Stack Overflow See other posts from Stack Overflow or by Shamanu4
Published on 2010-04-28T13:47:59Z Indexed on 2010/04/28 13:53 UTC
Read the original article Hit count: 389

Hello. I have this code, which open new jquery-ui dialog and then hide the dialog's titlebar.

 <div id="keyboard" class="keyboard dialogs">...</div>

 

  $("#keyboard").dialog({
      width: 1136,
      height: 437,
      position: ['center',400],
      closeOnEscape: false,
      autoOpen: false,
      resizable: false,
      open: function(event, ui)  {
          $(".ui-dialog-titlebar").hide(); // <-- this selector i want to change
      }
  });

But $(".ui-dialog-titlebar") select all titlebars. How do i have change selector to hide only this titlebar?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors