数値入力欄をリアルタイムに監視しようってことで、メモメモ
1 2 3 4 |
$('#id').on('input', function () { var num = $(this).val(); $(this).val(num.replace(/[^0-9]/g, '')); }); |
We hope that we will be able to further the work that was started here.
数値入力欄をリアルタイムに監視しようってことで、メモメモ
1 2 3 4 |
$('#id').on('input', function () { var num = $(this).val(); $(this).val(num.replace(/[^0-9]/g, '')); }); |