Here is my code. The problem I encountered is how do I make the submit button work only when it is 10?
<input type="text" name="qty>
<input type="submit" name="proceedbtn" value="PROCEED" id="button">
<script>
$(document).ready(function(){
$('input[id="button"]').attr('disabled',true);
$('input[id="qty"]').on('keyup',function(){
if($(this).val() == 10)
$('input[id="button"]').attr('disabled',false);
});
});
</script>
How do i fix it?
qtyin your html. That is the only issue I see.