/ is a special character, you have to esccape it using \\

So 

 $('form.formclass').find('li\\/label').each(....

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JayStrain
Sent: vendredi 14 septembre 2007 11:27
To: jquery-en@googlegroups.com
Subject: [jQuery] Selecting elements using '/'



Hi there,

I have just started using JQuery.

I am wondering what the difference between the two following select
statements within the find function:

$('form.formclass').find('li/label').each(....

and

$('form.formclass').find('li label').each(....

when i use the '/' (as was recommended by the author of this particular
script i'm adapting), the label elements are not being found. but when i
replace this with a <space>, the labels are found.

Any insight into this would be most appreciated!

Thanks,

Jay.
--
View this message in context:
http://www.nabble.com/Selecting-elements-using-%27-%27-tf4441602s15494.html#
a12672558
Sent from the JQuery mailing list archive at Nabble.com.

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007
21:48
 

Reply via email to