Thursday, September 3, 2015

jquery each return false not working

var exitSubmit = false;
                   $("#tbllic tr td input[type=text]").each(function () {
                       var getid = $(this).attr("id");
                       alert("user" +getid);
                     if ($("#" + getid).val() == null || $("#" + getid).val() == "") {
                          
                          
                           $("#" + getid).focus();
 
                           exitSubmit = true;
                           return false;
                       }
                      
                      
 
                   });
                   if (exitSubmit) {
                       alert("Please Enter the Ariba Number!");
                       return false;
                   }

No comments:

Post a Comment