Dynamic validation in jquery

Posted by mansoor on Stack Overflow See other posts from Stack Overflow or by mansoor
Published on 2010-05-26T16:37:04Z Indexed on 2010/05/26 16:41 UTC
Read the original article Hit count: 191

Filed under:
$(document).ready(function(){
 $('a[rel=addhint]').click(function(){
  var html='<div><label>Hint</label>';
  html+='<span class="input"><input type="text" size="30" class="text" name="hint"/><a href="#" rel="delhint">delete</a></span><br class="clear" /></div>';
  $('div#hintTextContainer').append(html);
  bindDelHintAll();
  return false;
 });

I want when a new text area include vadition of required field and max length will also apply on it.

© Stack Overflow or respective owner

Related posts about jQuery