PHP Classes

File: assets/js/pages/form-input-spin.init.js

Recommend this page to a friend!
  Classes of Braun Okoi Boniface   eprotech   assets/js/pages/form-input-spin.init.js   Download  
File: assets/js/pages/form-input-spin.init.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: eprotech
Application to access medical product suppliers
Author: By
Last change:
Date: 2 years ago
Size: 709 bytes
 

Contents

Class file image Download
function isData(){var t=document.getElementsByClassName("plus"),e=document.getElementsByClassName("minus"),n=document.getElementsByClassName("product");t&&Array.from(t).forEach(function(t){t.addEventListener("click",function(e){parseInt(t.previousElementSibling.value)<e.target.previousElementSibling.getAttribute("max")&&(e.target.previousElementSibling.value++,n&&Array.from(n).forEach(function(t){updateQuantity(e.target)}))})}),e&&Array.from(e).forEach(function(t){t.addEventListener("click",function(e){parseInt(t.nextElementSibling.value)>e.target.nextElementSibling.getAttribute("min")&&(e.target.nextElementSibling.value--,n&&Array.from(n).forEach(function(t){updateQuantity(e.target)}))})})}isData();