Just curious if there is any way to have this work without the '_' values showing up in the textbox. I want to just limit the field to 6 characters and have it look and feel as if nothing was different. I'm currently using it with this config option:
Is it possible to use this to create a "quantity" input field with this?
By quantity input field I mean:
enter any number, be able to only enter one decimal point, and get it all nicely formatted with a thousand separator.
No, actually no.
I think that a good work could be to extract all the input management logic, insert int into some classes, and let the text management to the application....
But I don't have time ATM
Brilliant work! One question: What license are you releasing this extension under? GPL 3.0 or one of the FLOSS compatible open-source options?
I searched through this thread and the source, but could not find any reference to a license. I apologize in advance if it's noted somewhere and I just missed.
Rather than build a syntax of your own, why not build upon the existing, so that
1. It will be easy for those who have already know the javascript syntax and use of regEx.
2. You will be adding some EXTRA stuff.. Not figuring out tht the wheel has to be round!
3. It will be more comprehensive, as the javascript functions are mature by now, bug fixed ( i hope)
What i would suggest is to extend your grate work to provide with some plugin (possible) at the component level, tht can be connected to ANY UI widget. So even a password,textbox,textarea can use this facility.
Also some prebuilt testers for email ( xxx@xx.xx), address, po. box, phone number, country, timezone, age etc might be nice.