[jQuery] Re: Newbie question on selectors

2009-06-03 Thread Karl Swedberg
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 '

[jQuery] Re: Newbie question on selectors

2009-06-03 Thread Andrew
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

[jQuery] Re: Newbie question on selectors

2009-06-03 Thread Dave Maharaj :: WidePixels.com
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

[jQuery] Re: Newbie question on selectors

2009-06-03 Thread James
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

[jQuery] Re: Newbie question on selectors

2009-06-03 Thread Dave Maharaj :: WidePixels.com
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:

[jQuery] Re: Newbie question on selectors

2009-06-03 Thread James
$("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 >