samedi 27 décembre 2014

check box validation before clicking proceed button


<a href="page.html" > <button type="button" id="proceed-button">Proceed </button></a>

<input type="checkbox" name="checkbox3" value="yes">
By checking the box, I certify that have read the above disclaimers and agree to the rules. </input>


I have a checkbox and a button which will take me to next page. But, before I press the button the check box has to be ticked. If not, a label has to be displayed below the check box saying "accept to rules first". Help? Also, it would be great if i can highlight the checkbox to red if i click proceed without checking the checkbox. Can use javascript/jquery.





Aucun commentaire:

Enregistrer un commentaire