Currently, I have some jQuery/Javascript code that toggles the css class \'ui-state-hovered\' when a user hovers the mouse over certain elements, and I want to write a test
Write function on hover
$('.someClass li:first').hover(function(){ return $(this).attr('class').indexOf('ui-state-hovered') > -1; });