I have several sets of dynamically created radio buttons. Each with a yes,no, and n/a.
The id of the NA radio buttons always start with 'r3_' and the value is always = 'na'.Code:<input type="Radio" name="r_1_237" id="r1_1_237" value="yes">Yes<br /> <input type="Radio" name="r_1_237" id="r2_1_237" value="no">No<br /> <input type="Radio" name="r_1_237" id="r3_1_237" value="na">N/A <input type="Radio" name="r_1_238" id="r1_1_238" value="yes">Yes<br /> <input type="Radio" name="r_1_238" id="r2_1_238" value="no">No<br /> <input type="Radio" name="r_1_238" id="r3_1_238" value="na">N/A <input type="Radio" name="r_2_239" id="r1_2_239" value="yes">Yes<br /> <input type="Radio" name="r_2_239" id="r2_2_239" value="no">No<br /> <input type="Radio" name="r_2_239" id="r3_2_239" value="na">N/A
I need a 'Check All N/A' button that would select all the N/A radio buttons in all the sets of buttons. I am not sure how to reference the buttons if I don't know the exact id.
Thanks



Reply With Quote

Bookmarks