Your IP : 18.118.33.130


Current Path : /home/lentoinv/finationglobal.com/arch/HTML/zanex/assets/js/
Upload File :
Current File : /home/lentoinv/finationglobal.com/arch/HTML/zanex/assets/js/handlecounter.js

// QUANTITY CART INCREASE AND DECREASE

$(function () {
    'use strict'
	
	$('.counter-plus').on('click',function(){
		var $qty=$(this).closest('div').find('.qty');
		var currentVal = parseInt($qty.val());
		if (!isNaN(currentVal)) {
		$qty.val(currentVal + 1);
		}
	});
	$('.counter-minus').on('click',function(){
		var $qty=$(this).closest('div').find('.qty');
		var currentVal = parseInt($qty.val());
		if (!isNaN(currentVal) && currentVal > 0) {
		$qty.val(currentVal - 1);
		}
	});
});

?>