Bug Tracker

Modify

Ticket #3766 (closed feature: invalid)

Opened 4 years ago

Last modified 4 years ago

can you add this built-in validation method

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

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

comment:1 Changed 4 years ago by flesler

  • Cc webosb added
  • Component changed from unfilled to plugin
  • Owner set to joern
  • Version 1.2.6 deleted
  • Milestone 1.3 deleted
  • Keywords validation added

comment:2 Changed 4 years ago by joern

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.