[jQuery] XPath and one basic question
What I want to do is: if checkbox is checked, set background color od
label that contain input(checkbox) to red
I have this code:
$("label[input[@checked]]").css("background", "red");
but it doesn't working because of nested brackets [[ ]] and it freeze
the browser
In Xpath documentation says it can be used
any sugestions?
And another question:
How can write the code that do:
if label is clicked, do something with input (that is inside of the label)?
Thank you
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/