I have a html form on my website, but people keep forgetting to fill it in completely (3 boxes to fill in).
Is their a way with html to only activate the submit button if they have filled it in completely or something similar?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make a javascript function to check fields and then call that function on the onsubmit event of your form.
function validate() { if(document.formname.txtbox1.value=='') { alert("enter value"); document.formname.txtbox1.focus(); return false; }and then call it onsubmit event of your form