minimum and maximum Input field validation
问题 Trying to create validation for an input field, which will put a message alongside the input field. As you can see, the user cannot enter anything below 500 or anything above 800 <input type="text" name="amount" id="amount" maxlength="6" autocomplete="off"/> <span class="paymentalert"></span> Please excuse my javascript as I'm still learning. $(function(){ var min = 500.00; var max = 800.00; if ("#amount" < 500.00){ return ("Your payment must be between £500 and £800"); else if ("#amount" >