Last active
September 23, 2019 10:00
-
-
Save renopaslah/3a0c89ae59f17f704be9ab3d1bfd1cb0 to your computer and use it in GitHub Desktop.
Autonumeric Problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.addPriceRow').click(function(){ | |
new_row = '<tr>'; | |
new_row += '<td>3</td>'; | |
new_row += '<td><button class="btn btn-warning btn-sm" type="button" name="button"> <i class="fa fa-remove"></i> </button></td>'; | |
new_row += '<td>'; | |
new_row += '<select class="form-control satuan_jual" name="id_satuan_jual" style="width:100%">' | |
new_row += '<option></option>'; | |
new_row += '</select>'; | |
new_row += '</td>'; | |
new_row += '<td><input class="form-control qty" type="text" name="" value=""></td>'; | |
new_row += '<td><input class="form-control harga " type="text" name="" value=""></td>'; | |
new_row += '<tr>'; | |
$('.tprice').append(new_row); | |
initializeSatuanJual(); | |
new AutoNumeric.multiple('tr#row-3 > .harga', 0, { | |
currencySymbol : 'Rp. ', | |
digitGroupSeparator : '.', | |
decimalCharacter : ',', | |
decimalPlaces : '0', | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment