New to programming here was wounding if you can do calculation with JavaScript. Trying to build a form I have about 4 radio buttons list with a “yes” and “no” labels and each “Yes” has a value of 10 and “No” with a value of 0. Is there a way to total up the “Yes” values into a single field?
Thanks in Advance
Jonsey
HTML Code:<input id="Radio1" type="radio" name="rblA" value="10"/> Yes <input id="Radio2" type="radio" name="rblA" value="0"/> No<br /> <br /> <input id="Radio3" type="radio" name="rblB" value="10"/> Yes <input id="Radio4" type="radio" name="rblB" value="0"/> No<br /> <br /> <input id="Radio5" type="radio" name="rblC" value="10"/> Yes <input id="Radio6" type="radio" name="rblC" value="0"/> No<br /> <br /> <input id="Radio7" type="radio" name="rblD" value="10"/> Yes <input id="Radio8" type="radio" name="rblD" value="0"/> No<br /> <br /> <br />



Reply With Quote
Just one thing is there a way to do that dynamic as each radio button is check?

Bookmarks