View Single Post
  #1 (permalink)  
Old November 6th, 2008, 04:48 PM
GISGeek GISGeek is offline
Registered User
 
Join Date: Aug 2007
Location: TALLAHASEE, FL, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing selected value in combobox

<select id="DistrictID" name ="Distict" width="10">
        <option> xsl:value-of select= "1"/></option>
    <option><xsl:value-of select= "2"/></option>
    <option><xsl:value-of select= "3"/></option>
    <option><xsl:value-of select= "4"/></option>
    <option><xsl:value-of select= "5"/></option>
    <option><xsl:value-of select= "6"/></option>
    <option><xsl:value-of select= "7"/></option>
    <option><xsl:value-of select= "8"/></option>
</select>

I have created and filled a combobox as showen above.
Now, I need to create a table based on the selected value by the user from the combobox (district). I have created a button underneath the combobox. When the user selects a number and clicks the button, I want to call a function in javascript to retireve the values of selected number in the combobox and create a table. How can I do this?

Reply With Quote