I'm designing a website for a client who wants a 'Store Locator', but whats the user to be able to specify the distance from their postcode. To do this, I will use a simple HTML dropdown list, but how do I get this result into my Javascript equation?
This my HTML
<select name="radius" id="radius">
<option value="5">5 Miles</option>
<option value="10">10 Miles</option>
<option value="15">15 Miles</option>
<option value="20">20 Miles</option>
</select>
And this is my javascript bit which assigns the variables
var parameters = 'lat='+ location.lat() + '&lng=' + location.lng() + '&radius=' ?
What do I need to put after '&radius=' to use the result of my list as the radius variable?