G
Gale
I'm working on something in jQuery with XPath
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 say it can be used
any sugestions?
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 say it can be used
any sugestions?