How do I set a counter to a yes or no radio form, which incriments when submitted?

CustardCurse

New Member
I am new with javascript and have a hard time grasping the concept. I want to add a yes or no form, which submits and adds up when submitted.Here is the form html:\[code\] <form id="selection" name="selection" method="post"> <input type="radio" name="choice" value="http://stackoverflow.com/questions/13809972/yes">Yes<br> <input type="radio" name="choice" value="http://stackoverflow.com/questions/13809972/no">No<br /> <input type="reset" name="submit" value="http://stackoverflow.com/questions/13809972/Submit" /> </form> <div id="results"> Voters who said yes are: <label id="yes">0</label><br /> Voters who said no are: <label id="no">0</label><br /> </div>\[/code\]
 
Back
Top