arf... my bad!

   _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Erik Beeson
Sent: vendredi 14 septembre 2007 11:40
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Selecting elements using '/'


I don't think that's what he was asking...


On 9/14/07, Alexandre Plennevaux <HYPERLINK
"mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote: 


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

So

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

-----Original Message-----
From: HYPERLINK
"mailto:jquery-en@googlegroups.com"jquery-en@googlegroups.com
[mailto:HYPERLINK "mailto:jquery-en@googlegroups.com";
[EMAIL PROTECTED] On
Behalf Of JayStrain
Sent: vendredi 14 septembre 2007 11:27
To: HYPERLINK "mailto:jquery-en@googlegroups.com"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:
HYPERLINK
"http://www.nabble.com/Selecting-elements-using-%27-%27-tf4441602s15494.html
#"http://www.nabble.com/Selecting-elements-using-%27-%27-tf4441602s15494.htm
l#
a12672558
Sent from the JQuery mailing list archive at HYPERLINK
"http://Nabble.com"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






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