As shown below:
function checkForm(){ var input_cart=document.getElementsByTagName_r("INPUT"); for(var i=0; i<input_cart.length; i++) { if(input_cart[i].value==""||input_cart[i].value==null) { alert("Information cannot be empty!"); input_cart[i].focus(); return (false); } } document.forms['BusinessInfoForm'].submit(); }The above simple example of JS judging whether all forms in form are empty is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.