maskMoney Jquery Bug when using append

I have html like this, actually input inside tr of table:

<input type='text' class='angka1' style='text-align:right;' name='Nominal"+a+"' required/>

And i have a javascript like this in when document ready:

When i try to append just 1 row, nothing wrong, i can input number formatted correctly. But, when i try to append more than 1, like 2 rows, i try to input '1'. than i will get '11'.

I get word like long of the row i have inputted. How can i fix it?, or do you have any solution to create object formatted like #.###,##. (Sorry many of tags in html i deleted, i am very beginner in stackoverflow)


You need to use $('.angka' + i).maskMoney() instead of $('.angka1').maskMoney() and move statement i++ after the statement

Need Your Help

CA Clarity and TFS integration

tfs integration clarity

Has anybody was able to integrate CA Clarity PPM with Team foundation Server.

php exec() function not working and not throwing error

php ubuntu-14.04 pdftk

I am trying to get the exec() function to file off a commad for pdftk and it is neither working and I cannot figure out how to capture the error if one is being thrown.