I have a list with the id #list with no list items in it. In my jQuery script, I have a function that sets the HTML inside of #list to some list items.
$('#list').click(function() {
$('#list').html("<li> blah </li> <li> blooh </li>");
});
But afterwards, when I try to manipulate $('#list li'):
$('#list li').mouseenter(function() {
this.style.backgroundColor = "red";
});
it doesn't seem to work. Any ideas?