Bug Tracker

Opened 14 years ago

Closed 13 years ago

#4419 closed enhancement (invalid)


Reported by: lewismc Owned by:
Priority: minor Milestone:
Component: plugin Version:
Keywords: validate addMethod Cc:
Blocked by: Blocking:


Contribution to addMethod:

Default Value

If a default value is used in the form, by way of the title attribute, this method will check that the field value is not equal to that value, therfore will not validate if is.


"defaultVal", function(value, element){

if (jQuery(element).val() != jQuery(element).attr('title')) {return true;} return false;

}, "Please enter a value"


Change History (2)

comment:1 Changed 14 years ago by pbcomm

Line: if (jQuery(element).val() != jQuery(element).attr('title')) {return true;} return false;

Should be: return (jQuery(element).val() !== jQuery(element).attr('title')) ? true : false;

comment:2 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.