On Apr 26, 2007, at 6:23 PM, Klaus Hartl wrote:
Karl Swedberg schrieb:
Hi Shelane,
Looks like you just forgot the $ or jQuery before the opening
parenthesis. This should work:
var initlink = $('a', 'div.nav_one_selected').attr("href");
--Karl
This would still not work, but this:
var initlink = $('a', $('div.nav_one_selected')).attr("href");
six eyes are better than two ;-)
-- klaus
Huh? Why not?
Works for me. See it in action:
http://test.learningjquery.com/context.html
;-)
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com