How to execute Javascript or jQuery on newly opened popup? -
<script> $(document).ready(function(e) { function clickme() { alert('heyy'); } )};
html in popup:
<li id="tab2" onclick="clickme()"><a href="#">example</a></li>
as can see in jquery documentation can use :
$(function() { // handler ready });
which equivalent :
$( document ).ready(function() { $( "p" ).text( "the dom loaded , can manipulated." ); });
Comments
Post a Comment