I need to construct a drop down menu with each choice enabling a different geoprocessing task to run over my script.
<select id="myList" onchange="environment()">
<option>Select..</option>
<option value="http://********/arcgis/rest/services/EDDM/selectZIP/GPServer">DEV</option>
<option value="http://********/arcgis/rest/services/EDDM/selectZIP/GPServer">SIT</option>
<option value="http://********/arcgis/rest/services/EDDM/selectZIP/GPServer">CAT</option>
<option value="http://********/arcgis/rest/services/EDDM/selectZIP/GPServer">PROD</option>
</select>
They each run the same process albeit at different levels of production. I have this code that is a placeholder and uses just one value.
function selectZIP(Zip_code){
gp = new esri.tasks.Geoprocessor("http://********/arcgis/rest/services/EDDM/selectZIP/GPServer/selectZIP");
How can I make a drop-down that will allow the user to select which GPServer they need and use it on the same script?