Hello!
I want to make a very simple form field validation (only one field) with javascript, but it doesnt work. Please help me!
I have put this to the Form tag attachment box:
and the following to the Form JavaScript:
I want to make a very simple form field validation (only one field) with javascript, but it doesnt work. Please help me!
I have put this to the Form tag attachment box:
onsubmit="return checkform(this);"
and the following to the Form JavaScript:
function checkform (formname) { // ** START ** if (document.formname.fieldname.value == ""รยซรยป) { alert( "Please fill this field!" ); document.formname.fieldname.focus(); return false ; } // ** END ** return true ; }