I found this to work best for me https://jsfiddle.net/Lu92akv6/ [I found this to work for me try this fiddle][1]
document.getElementById("btnmyNumber").addEventListener("click", myFunctionVar);_x000D_
function myFunctionVar() {_x000D_
var numberr = parseInt(document.getElementById("myNumber").value, 10);_x000D_
// alert(numberr);_x000D_
if ( numberr > 1) {_x000D_
_x000D_
document.getElementById("minusE5").style.display = "none";_x000D_
_x000D_
_x000D_
_x000D_
}}
_x000D_
<form onsubmit="return false;">_x000D_
<input class="button button3" type="number" id="myNumber" value="" min="0" max="30">_x000D_
<input type="submit" id="btnmyNumber">_x000D_
_x000D_
</form>
_x000D_