$("#num").on("keyup",function(){
if($(this).val()>5)
alert("The number entered is greater than 5");
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input id="num" type="number" value="click"/>
5
solved If number entered > 5 then show message using JQuery [closed]