Bug Tracker

Opened 11 years ago

Closed 10 years ago

#3766 closed feature (invalid)

can you add this built-in validation method

Reported by: webosb Owned by: joern
Priority: minor Milestone:
Component: plugin Version:
Keywords: validation Cc: webosb
Blocked by: Blocking:

Description

Can you add another built-in validation method:

CannotEqual - check if the input value equals a certain value, if true, then fail validation.

Because I been playing with your validation plugin, and when I use defaultText (http://www.dailycoding.com/Posts/default_text_fields_using_simple_jquery_trick.aspx) for the input field, your validation doesnt work....

Change History (2)

comment:1 Changed 11 years ago by flesler

Cc: webosb added
Component: unfilledplugin
Keywords: validation added
Milestone: 1.3
Owner: set to joern
Version: 1.2.6

comment:2 Changed 10 years ago by joern

Resolution: invalid
Status: newclosed

A proper watermark plugin doesn't have this problem, as long as it doesn't modify the input value, eg. see http://wiki.jqueryui.com/Watermark

Note: See TracTickets for help on using tickets.