Jquery validation for label field -
is possible validate or make required field label this.
<label id="company" name="company"> <% if (request.getparameter("company") != null) { request.getparameter("company"); } %> </label>
for text area make require giving company: required. label. ?
you can label text using $('label[for="' + this.id + '"]').html();
.so can write jquery validation label
<label for="company" class="con_name">insert name</label> $("#formid").validate( { rules:{ con_name:{required:true, minlength:3}, } messages: { con_name: 'insert name' } });
Comments
Post a Comment