In place of check boxes I am using 16px text boxes with an X that is placed/removed on clicking using js (this allows customization of size of the box etc which is more difficult with check boxes). On my form some of the text boxes will highlight with a yellow background if indicated. I want to be able to "check all suggested text boxes" with one click.
function checkBox(){
$("input[type=text]").val("X");
}
This code will put X's in ALL the text boxes (it works).
How do I select out only the text boxes with background color yellow (the other text boxes are either background color white or blue)? Something like:
function checkBox(){
$("input[type=text:style=background,yellow]").val("X");
}
The above code does not trigger a console error...but simply does nothing.