Where are the links?
You just have the path?

You can get an href value with the attr() function.
$("a").attr("href") will return the value inside an a href parameter.

You can also get the next link with the next function
$("1").click( function() {
   alert($(this).next("a").attr("href");
} );

This might not be what you are looking for.  Maybe post a sample page to
help us understand?

Glen

On 8/14/07, b0bd0gz <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
> I have a list of links and what I want is when someone clicks a button for
> it to display the "href" value of the next anchor tag in the list, in an
> alert box, after the anchor tag with the class "selected".
>
> here's what the list looks like.
>
>         <ul class="thumbs">
>                 <li> full_img/dh0215co4.jpg first </li>
>                 <li> full_img/34220_1605__364lo.jpg second </li>
>                 <li> full_img/122120_7132__239lo.jpg third </li>
>         </ul>
>
> So when the person clicks the person it will display an alert box with the
> "href" value, in this case, will be "full_img/34220_1605__364lo.jpg".
>
> I hope that makes some sort of sense, if not I'll try and explain again.
> Any help will be greatly appreciated, Thanks
> b0bd0gz
> --
> View this message in context:
> http://www.nabble.com/next-anchor-tag-in-list-tf4267089s15494.html#a12143839
> Sent from the JQuery mailing list archive at Nabble.com.
>
>

Reply via email to