What?!?!?

You can use html based pathing in jQuery? Why didn't someone tell me that?!?

How come I get an error?

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Roman Weich
Sent: Friday, April 20, 2007 1:55 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Retrieving information outside of $this


Andy Matthews schrieb:
> Sorry for the loads of emails.
> 
> Using your exact code setup, this is what I came up with:
> $('div.data a').click( function() {
>       var lat =
>
$(this).parent().parent().children('.editable').children('span').attr('name'
> ,'longitude').html();
>       alert(lat);
>       return false;
> });
> 
a little bit shorter:

$('[EMAIL PROTECTED]').click(function(){
        alert($('../../.editable/[EMAIL PROTECTED]', this).text());
        alert($('../../.editable/[EMAIL PROTECTED]', this).text()); });


Reply via email to