jQuery code works differently on different servers -


i have following jquery snippet:

$('#something').hover(                 function () {                   $(this).stop().animate({'width':'220px'},1000, 'easeoutexpo').css('overflow','hidden');                    $('.faded').stop().fadeto('slow', 1);                 },                 function () {                   $(this).stop().animate({'width':'40px'},1000, 'easeoutexpo').css('overflow','visible');                    $('.faded').stop().fadeto('slow', 0);                 }            );    

for following html:

< li id="something">< href="someurl" title="a thing">< span class="faded">some text< /span>< /a>< /li> 

this works charm on local server , online server, on client server snippet of code gets ignored totally , css :hover works instead though other function in same .js file works should. can why going way?


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -