I want to run a function based on the eq() selector:
$('div.entry-content div.one_fifth').eq(0, function(){
$(this).css({background: 'url(../wp-content/themes/genesis/images/plant_hire.jpg) no-repeat center'});
$(this).on('hover',function(){
alert('Test');
});
});
What is wrong with my syntax since the inside function is not working
Thanks
.eq()has no callback.on('hover')(well, there is, but you should'nt use it)!