jquery UI dialog: how to initialize without a title bar?

前端 未结 23 1704
春和景丽
春和景丽 2020-11-29 15:03

Is it possible to open a jQuery UI Dialog without a title bar?

23条回答
  •  抹茶落季
    2020-11-29 16:03

    If you have multiple dialog, you can use this:

    $("#the_dialog").dialog({
            open: function(event, ui) { 
                //hide titlebar.
                $(this).parent().children('.ui-dialog-titlebar').hide();
            }
        });
    

提交回复
热议问题