How to make default 1 by entering field IMAE/SN
Hello Guys, i need some help to debug my javascript in localhost running well but only first row so i upload in jsfidlle but it doesn't work >.<
all i need is how to make default fields Jumlah to be 1 when user enter IMAE/S.N
my script about it in bellow
Reminder :Localhost running first row but next row not working in jsfiddle not work, Thanks for respon my jsfiddle here
http://jsfiddle.net/dauruk0512/08ps55uf/11/
- $(document).on('keyup', '.imae', function() {
- var imae = $(this).val();
- if (imae!='')
- {
-
- $(".quantity").val(1);
- $(".quantity").prop("readonly", true);
- }
- else
- {
- $(".quantity").val("");
- $(".quantity").prop("readonly", false);
- }
- })