Thanks heaps for that David, works beautifully :-)
Do you have a link to the tutorial?
Cheers,
Allan
David wrote:
> hi Allan,
>
> To quote Jorn's tutorial:
>
> More often then selecting anchors by name, you might need to
> selected anchors by their "href" attribute. This can be a problem
> as browsers behave quite inconsistently when returning what they
> think the "href" value is. To match only a part of the value, we
> can use the contains select "*=" instead of an equals ("="):
>
> $(document).ready(function() {
> $("[EMAIL PROTECTED]/content/gallery]").click(function() {
> // do something with all links that point somewhere to
> /content/gallery
> });
> });
>
>
> So in your case, if you try:
>
> $("[EMAIL PROTECTED]/home.html]")
>
> It should work for you.
>
> Cheers,
>
> DB
>
>
> Allan Mullan wrote:
>> Hey all,
>>
>> I'm probably just tired but I would have thought that the following
>> should get any links with <a href="/home.html">
>>
>> $('[EMAIL PROTECTED]"/home.html"]')
>>
>> But it doesn't work... What's the correct way of getting these elements?
>>
>> Thanks,
>> Allan
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>>
>>
>>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/