check that a number is in the correct range based on a form selection

This script will check if the number is correct based on a form selection this can be used for checking that a postcode matches a state value or something similar

Lets grab the html select form from here, to get a list of Australian States.

HTML

<select id='aus-regions'>
	<option value="Please Select" disabled selected>Please Select</option>
	<option value="ACT">Australian Capital Territory</option>
	<option value="NSW">New South Wales</option>
	<option value="NT ">Northern Territory</option>
	<option value="QLD">Queensland</option>
	<option value="SA ">South Australia</option>
	<option value="TAS">Tasmania</option>
	<option value="VIC">Victoria</option>
	<option value="WA ">Western Australia</option>
</select>

Other Items in javascript
Page Views

This page has been viewed 109 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

âĪðŸ‘Đ‍ðŸ’ŧðŸ•đ

Random Quote
Even if you fall on your face, you're still moving forward.
Victor Kiam