Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Validate optional form fields with default values


daveVk - 4:35 am on Oct 23, 2012 (gmt 0)


Change validate call

$("#commentForm").validate({ignore: ".ignore"});

on focus after
$(this).val("");
add
$(this).removeClass('ignore');


and after
$(this).val(this.defaultValue);
add
$(this).addClass('ignore');


Thread source:: http://www.webmasterworld.com/javascript/4510909.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com