jQuery - how to write 'if not equal to' (opposite of ==) -


i need reverse of following code. how can make animation run if width not 500px.

$(".image-div").not(this).each(function() {         if ($(this).css('width') == '500px') {             $(this).animate({                     width: '250px'                 }, 500, function() {                 // animation complete.             });         }       }); 

in other words, opposite of this?: ==

thanks

the opposite of == compare operator !=.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -