issues with live function
- by Do Good
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?