tags:

views:

60

answers:

1

Anyone know a good solution for filtering input using jQuery?

I'd like to do something like this:

$("#fieldname").InputFilter("###-###-####")

I would also like the visual interface to enforce and display placeholders for ###-###-####, #####, etc.

Regards.

+4  A: 

Masked input plugin

astropanic
Wish it did optional characters though ... e.g. Zip Codes #####(-####) ... but it's better than nothing.
Nissan Fan