开发者

JQuery validation with default input

开发者 https://www.devze.com 2023-01-01 14:53 出处:网络
I am using this technique to place default input in the tex开发者_运维问答t fields as a hint to users.

I am using this technique to place default input in the tex开发者_运维问答t fields as a hint to users.

http://www.dailycoding.com/Posts/default_text_fields_using_simple_jquery_trick.aspx

I would like to also validate the fields using jquery validate.

How can i get the validater to ignore the default input?


You could try using a different method that does not actually add a value to the input fields for the hint. This might do the trick: http://fuelyourcoding.com/scripts/infield/

Basically, your label field is positioned directly within the text box. Caveats are your form design needs to be able to accommodate such an approach.

0

精彩评论

暂无评论...
验证码 换一张
取 消