javascript - jquery dialog too many buttons -
here code jquery ui:
jquery("#nodeliverydate").dialog({ resizable:false, draggable:false, modal:false, buttons:[{text:"close",click:function(){jquery(this).dialog("close");}}] });
it simple code using jquery dialog
alert box. defined 1 button close dialog. however, runs in odd way dialog contain many buttons, , text on buttons function names such "each","all","clone","select","size", etc
. , after close it, if dialog shows again, normal. have idea why happens?
jquery("#nodeliverydate").dialog({ modal: true, title: 'delete msg', zindex: 10000, autoopen: true, width: 'auto', resizable: false, buttons: { yes: function () { // $(obj).removeattr('onclick'); // $(obj).parents('.parent').remove(); $(this).dialog("close"); }, no: function () { $(this).dialog("close"); } }, close: function (event, ui) { $(this).remove(); } });
this work pretty well: yes or no confirm box using jquery
Comments
Post a Comment