[jQuery] Re: crazy if... !not working.

2009-06-22 Thread umcosta
ok guys... sorry for the inconvenient. Here is the solution in case someone needs: $(document).ready(function(){ $.localScroll(); $("a.thumb").fancybox(); }); On Jun 22, 9:29 pm, umcosta w

[jQuery] crazy if... !not working.

2009-06-22 Thread umcosta
Ok, here is what I want to do (extracted from: http://docs.jquery.com/Traversing/hasClass): http://code.jquery.com/jquery-latest.js";> $(document).ready(function(){ $("div").click(function(){ if ( $(this).hasClass("protected") ) $(this).animate({ left: -10 }, 75)