Textbox validation using jquery

by satheeshkumar 2012-05-28 11:34:56

Textbox validation using jquery if it is empty:

The following code is used to validate all the text box in the form if it is empty,


var emptyTextBoxes = $('input:text').filter(function() { return this.value == ""; });
chkInpEmp.each(function() {
string = this.id;
$("#"+string+"").html("Field is empty");
});

808
like
0
dislike
0
mail
flag

You must LOGIN to add comments