check for all empty input fields - Jquery

check empty fields

Snippet Code

Rate this page :
  [ 0 votes]

to check for all empty input fields, just get all input text field and then its length like,

var getFields = $(":text[value=]"); if(getFields.length>0){ alert("Some Field is Empty..Please fill all required field and then proceed"); }else if(getFields.length==0){ //perform some operation }


Ask Questions

Ask Question