I'm using the code below, the .click action works fine on its own, as soon as I add .hover, then .hover works and .click stops working. Any idea why this happens and how to fix it?
$('#11').click(function(){
$('#widget').load('../212/?id=11');
$(this).attr("src", "<?php bloginfo('stylesheet_directory'); ?>/images/category-fantasy-32-disable.png");
});
$('#11').hover(
function () {
//hover event
$(this).attr("src", "<?php bloginfo('stylesheet_directory'); ?>/images/category-fantasy-32-disable.png");
},
function () {
//hover out event
$(this).attr("src", "<?php bloginfo('stylesheet_directory'); ?>/images/category-fantasy-32.png");
});