jquery plus minus button
-
jQuery 를 이용한 + - 버튼 만들기.Front-End/jQuery 2014. 10. 2. 14:42
jQuery 를 이용한 - + 버튼 만들기. html JavaScript $(document).ready(function(){ // This button will increment the value $('.qtyplus').click(function(e){ // Stop acting like a button e.preventDefault(); // Get the field name fieldName = $(this).attr('field'); // Get its current value var currentVal = parseInt($('input[name='+fieldName+']').val()); // If is not undefined if (!isNaN(currentVal)) { // Increm..