i've got this function and i need 'click' event to stop after input value reaches 0 and less
function clickPlus(e) {
var parent = e.target.parentNode,
span = parent.querySelector('span'),
input = parent.getElementsByTagName('input')[0],
inner = span.dataset.one,
price = inner * (++parent.querySelector('input').value);
span.innerHTML = price; // price takes an input value
if (price > 10){
return false; // error here
}
countPrice();
}
for(i=0; i<pluses.length; i++) eventsObj.addEvent(pluses[i],'click', clickPlus);