View Single Post
Old 11-12-2012, 07:05 PM   PM User | #5
Brandnew
New Coder

 
Join Date: Aug 2012
Posts: 50
Thanks: 0
Thanked 11 Times in 11 Posts
Brandnew is an unknown quantity at this point
Got this idea from http://www.codeproject.com/Articles/...-list-selectio

Code:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">

function update(selection){
var choice = selection.selectedIndex;
document.getElementById("price").innerHTML="Pricing for County is " + selection.options[choice].value;
}

</script>
</head>

<body>
<p id="price" >Select county for pricing</p> 

<form>

<select id="hi" onChange="update(this.form.hi);">
  <option>Select County</option>
  <option value="25.00">This Location</option>
  <option value="50.00">That Location</option>
  <option value="75.00">Some Location</option>
</select>

</form>
</body>
</html>
__________________
1 Corinthians 15:3-4 / Ephesians 2:8-9 - What or Who are you living for?
Brandnew is offline   Reply With Quote