Greatly appreciated.
Dave
-Original Message-
From: James [mailto:james.gp@gmail.com]
Sent: June-03-09 3:55 PM
To: jQuery (English)
Subject: [jQuery] Re: Newbie question on selectors
$("a[class^=edit_]").click(...);
This is saying: all with class that begins with '
you can try something like this
$("a[class^=edit]").click(function(){
var url_id = $(this).attr('href');
do stuff..
});
On Jun 3, 11:20 am, "Dave Maharaj :: WidePixels.com"
wrote:
> I have a page with 6 links that each have a unique class ;
> edit_profile
> edit_preferences
> edit_journal
Sounds good!
Will keep that in mind, but its working perfect.
Thanks,
Dave
-Original Message-
From: James [mailto:james.gp@gmail.com]
Sent: June-03-09 4:51 PM
To: jQuery (English)
Subject: [jQuery] Re: Newbie question on selectors
Sorry, I forgot to mention that this would not
ls.com"
wrote:
> Perfect...
>
> Thanks for your help.
>
> Greatly appreciated.
>
> Dave
>
> -Original Message-
> From: James [mailto:james.gp@gmail.com]
> Sent: June-03-09 3:55 PM
> To: jQuery (English)
> Subject: [jQuery] Re: Newbie question
Perfect...
Thanks for your help.
Greatly appreciated.
Dave
-Original Message-
From: James [mailto:james.gp@gmail.com]
Sent: June-03-09 3:55 PM
To: jQuery (English)
Subject: [jQuery] Re: Newbie question on selectors
$("a[class^=edit_]").click(...);
This is saying:
$("a[class^=edit_]").click(...);
This is saying: all with class that begins with 'edit_'.
http://docs.jquery.com/Selectors
On Jun 3, 8:20 am, "Dave Maharaj :: WidePixels.com"
wrote:
> I have a page with 6 links that each have a unique class ;
> edit_profile
> edit_preferences
> edit_journal
>
6 matches
Mail list logo