$(this).find(.thumb).animate({ height: 50px }, fast);
Another way is to use the context argument of jQuery:
$(.thumb, this);
I believe this will actually be more performant because it only uses one
call to jQuery rather than two.
-- Josh
Hi Matt and Tobaco, thanks for the quick replies -- I really
appreciate the help! :)
Both of your replies have been very helpful. Thanks!
Have a great day!
Cheers,
Micky
On Jan 24, 7:54 pm, Micky Hulse [EMAIL PROTECTED] wrote:
Hi,
Two quick questions:
-
01.
$(.item).hover(
Micky,
On .bind(), I'm afraid I'm in the same boat as you; total n00b, so I'm
afraid I can't offer much help there.
On the child selection, the selector that immediately comes to mind is
parent child. I could be mistaken, but I don't think you'll be able to
use 'this', as it is a reference to
hi,
for 01. try this:
$(this).find(.thumb).animate({ height: 50px }, fast);
for 02.:
hover is just a helper-function.
it simplifies the process of binding.
see this example from the blog-entry (http://jquery.com/blog/
2008/01/15/jquery-122-2nd-birthday-present/) for the latest jquery-
4 matches
Mail list logo