Monday, 15 June 2015

Load method in jquery -



Load method in jquery -

i want alert massage when div having id b loaded.

<div id='a'>a</div> <div id='b'>b</div> <div id='c'>c</div> $(function(){ $('#b').load(function(){ alert(0) }) })

load event doesn't apply div elements. far i'm aware best can is

<div id='a'>a</div> <div id='b'>b</div> <script> alert(0); </script> <div id='c'>c</div>

jquery

No comments:

Post a Comment