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
Post a Comment