Is there a way to check the parameter if its empty or not before submitting?
Pure javascript method
form.onsubmit=function(){ var arr=this.elements,i=0,l=arr.length; for(;i
To answer OP's further question
function checkForm(){ var arr=this.elements,i=0,l=arr.length; for(;i