jquery-meiomask icon indicating copy to clipboard operation
jquery-meiomask copied to clipboard

Feature Request: Have variable number of decimal places

Open junalmeida opened this issue 10 years ago • 2 comments

I'd like to build a decimal mask that validates the following input exemples: 1,2 1,02 123,345 1 -1 -12,3 And block user to type the following: 1,2,3 1, ,1 -, abc

Note that the decimal separator here is comma.

junalmeida avatar Mar 27 '14 12:03 junalmeida

surely you can just hook up an on(".change") or on("keyup") event to verify this using data attributes, it does not sound like it is a concern of meimomask IMHO

Lewiscowles1986 avatar Mar 27 '14 14:03 Lewiscowles1986

I don't get you. Are you suggesting to simply don't use meiomask? I need to allow the input of only numbers, negative signal, and one decimal separator at any place. Currently all decimal masks have a fixed number of decimal places.

junalmeida avatar Mar 27 '14 15:03 junalmeida