#4490 closed enhancement (invalid)
[validate] Please add IP validation to Jquery validate plugin
Reported by: | Owned by: | joern | |
---|---|---|---|
Priority: | trivial | Milestone: | 1.4 |
Component: | plugin | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I would like to add IP validation to the Jquery validate plugin. Here is the heart of the code that I use:
ipaddress: function(value, element) {
author: Ann Robson
return this.optional(element) /([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$/i.test(value); },
I will attach my updated version which uses the most recent jquery.validate.js file as a base.
BEFORE YOU DELETE: the instruction on the Jquery validate home page say to do exactly this, and there is no validate plugin bug submit option, so I'm not sure how else I can submit this enhancement.
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | jquery.validate.js added |
---|
comment:1 Changed 13 years ago by
Owner: | set to joern |
---|
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please file plugin bugs with the appropriate author on their bug tracker.
Note: See
TracTickets for help on using
tickets.
My updated version of the Jquery validate plugin which includes IP validation