Page 1 of 1

Dynamically add commas/dots to number input

Posted: Tue Oct 06, 2015 12:08 pm
by taucher

Hello,

How can i add commas/dot to number input when keyup event is triggered?

I tried lots of js plugins but couldn't make it work. There should be an easy way with js.

Thanks,


Dynamically add commas/dots to number input

Posted: Tue Oct 06, 2015 3:52 pm
by Serhii Kulibaba

Hello,

You have to put only valid numbers into input with type=number.
E.g.:
Apperyio("myInput").val('1.23');


Dynamically add commas/dots to number input

Posted: Tue Oct 06, 2015 4:34 pm
by taucher

Hi Sergiy,

I want to do : When user entering the money number in input(type=number), I want to convert code1000000/code to code1,000,000/code dynamically.


Dynamically add commas/dots to number input

Posted: Tue Oct 06, 2015 8:24 pm
by Serhii Kulibaba

We are very sorry, but custom JS is something outside the scope (http://devcenter.appery.io/support-po...) of our support. I'm sure there are a lot of solutions in the internet.