Menu

What does pattern do?

Help
2011-05-11
2012-09-19
  • Daniel Casserly

    Daniel Casserly - 2011-05-11

    Hi I love the controls. Just wanted to know what the pattern property does and
    how to use it and also is there a way that we could show currency symbols on
    certain number edits?

    Thanks in advance, please email me at admin@buckit.co.uk when you can, thanks
    again! Daniel

     
  • Jason Akin

    Jason Akin - 2011-05-11

    Hi Daniel, Thanks for the positive feedback. The official
    answer
    is: "The pattern attribute specifies a regular
    expression against which the control's value, or, when the multiple attribute
    applies and is set, the control's values, are to be checked." My quick and
    dirty use of it is just to choose which keyboard pops up on a mobile device. I'm not sure how widely implemented the validation is in
    various browsers. Let me know what you find, I'm always open to suggestions.
    As I read that, I just realized that I haven't implemented "multiple" yet. I'm
    going to post an update shortly that will add the multiple tag and something
    new on the Map Links.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.