I am trying to make a function using jquery. And what i am trying to do is that i have a text field and submit button so when i insert numeric value from 1 to 10 it open up a link if the input value is from 11-20 on button click it should open different link.
html
<input type="text" Id="number" />
<input type="submit" id="button" />
jquery
$( document ).ready(function() {
if ( $("#number").val() >= 19200 && num <= 19276 ) {
$( "#button" ).click(function() {
alert( "u enterd the number " );
});
}
});