issues with live function
Posted
by
Do Good
on Stack Overflow
See other posts from Stack Overflow
or by Do Good
Published on 2012-09-13T15:28:27Z
Indexed on
2012/09/13
15:38 UTC
Read the original article
Hit count: 285
jQuery
I am using the .live function to fire of a function aaa(). Unable to fire the function because code does not reach alert msg The structure of my html is
body id="plants"
form id= flower method="post"
div class= "rose"
div class= "red"
ul id = "colors"
li
a
li
a
li
a
Cuurently I am using
$( 'body#plants form#flower div.rose div.red ul#colors li a' ).live('click', function(){
alert('code reaches');
aaa();
});
How can I get this to work?
© Stack Overflow or respective owner