$('.myclassname').mouseover(function(){
if($(this).children('span').css('font-weight')=='normal')
{..do something... }
}
Why the “do something” works on Chrome but not on Firefox 16 and Internet Explorer 9?
If I delete the if condition it works, but I need it so I can’t delete.
Here’s the css
div.myclassname span {...; font-weight:normal ; ...}
Try,
or
check here http://jsfiddle.net/muthkum/qpEK2/2/
font-weightreturn 400 in JS.