jQuery: The Write Less, Do More JavaScript Library

Input for special numbers

View: New views
3 Messages — Rating Filter:   Alert me  

Input for special numbers

by kicaj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How build input form where we can put only 9 digits, and after first 3
digits join '-', and after next two digits again join '-'?
Like this: 342-23-4323

Only numbers, but '-' will be added automatic!
Without plugin, only very simple solution:)

Thanks!

Sorry, for my english:/

Re: Input for special numbers

by brian ally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a look at the Masked Input Plugin:

http://digitalbush.com/projects/masked-input-plugin/

On Sat, Nov 7, 2009 at 5:31 AM, kicaj <kicaj@...> wrote:

> How build input form where we can put only 9 digits, and after first 3
> digits join '-', and after next two digits again join '-'?
> Like this: 342-23-4323
>
> Only numbers, but '-' will be added automatic!
> Without plugin, only very simple solution:)
>
> Thanks!
>
> Sorry, for my english:/
>

Re: Input for special numbers

by kicaj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I know this plugin, but I want without plugin, simple function (maybe
without jquery?)

On 7 Lis, 18:12, brian <zijn.digi...@...> wrote:

> Have a look at the Masked Input Plugin:
>
> http://digitalbush.com/projects/masked-input-plugin/
>
> On Sat, Nov 7, 2009 at 5:31 AM,kicaj<ki...@...> wrote:
> > How build input form where we can put only 9 digits, and after first 3
> > digits join '-', and after next two digits again join '-'?
> > Like this: 342-23-4323
>
> > Only numbers, but '-' will be added automatic!
> > Without plugin, only very simple solution:)
>
> > Thanks!
>
> > Sorry, for my english:/