I have a page with a list of elements display (items) - which are drawn dynamically, hence the live. When a user rolls over an item, I would like them to switch to a class that is "on" and then when they roll-off (mouseout) the item goes back to normal. The items turn on with the line of code below, but do not turn off. Suggestions?
$('.item').live('mouseover', function(){$(this).switchClass('item','item_on', 500);});
$('.item_on').live('mouseout', function(){$(this).switchClass('item_on','item', 500);});
Thanks!