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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -