I have this:
<div class="nav_one_selected"><a
href="/jQuery/pages/index.html">Index</a></div>

I was attempting to read the href of the anchor tag like this:

var initlink = ('a', 'div.nav_one_selected').attr("href");

I also tried
var initlink = ('div.nav_one_selected/a').attr("href");

I get an error like: ('a', 'div.nav_one_selected').attr is not a function

I'm not sure what I'm doing wrong here.

Reply via email to