mardi 14 juin 2016

radio button form without submit

Lets say I have 5 radio buttons like below. How would I submit this form without a submit button when all radio buttons are checked. once submitted I would like a response to be posted under the form. For example if all radio buttons are yes it would say "all radio buttons are yes" if all radio buttons are no "all radio buttons are no" and if theres a mixed "radio buttons consist of a mix of yes and no". Really struggling to find anything on this maybe I'm searching the wrong thing as I'm pretty sure I've seen things like this on a few websites. Thanks for your help :).

<input type="radio" name="q1" value="yes">Yes
<input type="radio" name="q1" value="no">no<br>
 		
<input type="radio" name="q2"  value="yes">Yes
<input type="radio" name="q2"  value="no">no<br>

<input type="radio" name="q3"  value="yes">Yes
<input type="radio" name="q3" value="no">no<br>


<input type="radio" name="q4" value="yes">Yes
<input type="radio" name="q4"  value="no">no<br>



<input type="radio" name="q5" value="yes">Yes
<input type="radio" name="q5" value="no">no

Aucun commentaire:

Enregistrer un commentaire