I have a jquery dialog configured with an identifier as shown below.
In document.ready
$('#modal-id').dialog({ autoOpen: false, ...... })
and in html
<div id="modal-id"> <div class="modal-content"> ..... </div> </div>
Now I need to bind an open dialog event.
$( "#modal-id" ).bind( "dialogopen", function(event, ui) { .... });
The above works, but below does not work
$( ".ui-dialog-content" ).bind( "dialogopen", function(event, ui) { ... });
Any suggestions are welcome.
Update:
$( ".ui-dialog" ).live( "dialogopen", function(event, ui) { $.getScript("/common/js/jquery.curvycorners.min.js", function() { }); });
source share