Try $("#navigation [EMAIL PROTECTED]" + $("#matchThis").attr("href") + "]")

On 12/28/06, Chaim <[EMAIL PROTECTED]> wrote:

Hi Everyone,
Here's what I'd like to able to do (simplified), although I can't seem
to figure out how to do it.

If the link in "matchThis" has the same href as the link in
"navigation," how can I select the link with the matching href in
"navigation? "

for the code:
<div id="navigation">
<a href="about.html">I want this link, because the href matches</a>
<a href="bla.html">I don't want this Link</a>
<a href="gla.html">I don't want this Link</a>
<a href="zla.html">I don't want this Link</a>
</div>
<div id="matchThis"><a href="about.html">Link to match to</a></div>


Thanks,
Chaim

--
____________________

Always Thinking.

The Berndt Group
www.berndtgroup.net

3618 Falls Road, Suite 300
Baltimore, Maryland. 21211

email: [EMAIL PROTECTED]
phone: 410-889-5854 ex. 23
fax: 410-889-5904



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to