I've recently converted my code to produce dynamically generated results. The below code worked fine to toggle the control_hover class.
Previous Code
$(".control").hover(function () {$(this).addClass("control_hover");},function () {$(this).removeClass("control_hover");});
However, now with the live code, it doesn't seem to execute the removeClass part.
New Code
$(".control").live('hover',function () {$(this).addClass("control_hover");},function () {$(this).removeClass("control_hover");});
I'm obviously doing something incorrectly. Any help would be appreciated.