Is there a way to check if the value is above 300 using jQuery? I have made the script below but I have no idea on how to check if the value is above 300.
$(document).ready(function(){
$("input").on('keyup', function() {
if( $(this).val() == '300' ) {
alert("Stop it now! You're above the 300 mark! I told you to stop, you dum dum!");
}
});
});
<input type="text">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Thanks in advance!