最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to Apply input Mask on a Textbox - Stack Overflow

programmeradmin0浏览0评论

I have a textbox on which I apply input masks.

I have downloaded JS library from here link to js Library with bit documentation

What I need to do is that I need format like this

any length integer/any length characters/CONSTANT lets say = hello/
current year lets   say = 2012


that is 6666/Edward/thanks SO/2012

if var lenght is not possible than atleast one integer or one character and atmost 15 integer or character

I have a textbox on which I apply input masks.

I have downloaded JS library from here link to js Library with bit documentation

What I need to do is that I need format like this

any length integer/any length characters/CONSTANT lets say = hello/
current year lets   say = 2012


that is 6666/Edward/thanks SO/2012

if var lenght is not possible than atleast one integer or one character and atmost 15 integer or character

Share Improve this question edited Jun 19, 2012 at 16:12 Edward Maya asked Jun 19, 2012 at 15:36 Edward MayaEdward Maya 4392 gold badges10 silver badges25 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

Maybe this - http://jsfiddle/ZYH9f/

It's one mandatory integer/character and 5 optional others:

$("input").mask("*?*****/*?*****/*?*****/9999");
发布评论

评论列表(0)

  1. 暂无评论