HTML
<div class="dialog"></div><div class="mydialog"></div>
// global bind of dialog class – general purpose
$('.dialog').dialog({open: function() { alert(1); }});
// specific page
$('.mydialog').dialog({open: function() { alert(2); }});
it seems the specific page open function isn’t getting called. how do i call the parent’s open and then the child’s open (aka, mydialog)?
so i want the output to be alert(1) then alert(2). mydialog’s open function isn’t getting called at all.
Working demo: http://jsfiddle.net/AlienWebguy/UdrvD/1/
You can see I added
autoOpen:falseto the global.dialogconfig to demonstrate how the.mydialogcan trigger the event