this should do it:

$('a[href^=css]:first')

Don't forget to put quotes around the selector.


--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On May 31, 2009, at 1:55 AM, ProfCrazyHorse wrote:


I'm still trying to get the hang of the syntax.  For example, if I
want to select the first anchor tag on the page whose href begins with
"css", this doesn't work:

(a[href^=css](a:first))

What's the right way to do this?

Thanks!

Reply via email to