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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -