get select value 
Author Message
 get select value

Hello

I have this pience of code:
<script language="javascript">
function getsettings()
{
document.location.href="settings_appearance.asp?sitesettingid="+document.formen.sitesettingid.selectedIndex;

Quote:
}

</script>
<html>
<body>
<form name="formen" method="post" action="">
<select name='sitesettingid' onchange='getsettings()'>
<option value="1" selected>one</option><option value="2">two</option>
</select>
</form>
</....

and I can't get it to return the "1" and "2", since the first one is
selected it won't return the "2", how can it be solved?

/Lasse



Thu, 06 Feb 2003 03:00:00 GMT  
 get select value
problem fixed
Quote:

> Hello

> I have this pience of code:
> <script language="javascript">
> function getsettings()
> {
> document.location.href="settings_appearance.asp?sitesettingid="+document.formen.sitesettingid.selectedIndex;

> }
> </script>
> <html>
> <body>
> <form name="formen" method="post" action="">
> <select name='sitesettingid' onchange='getsettings()'>
> <option value="1" selected>one</option><option value="2">two</option>
> </select>
> </form>
> </....

> and I can't get it to return the "1" and "2", since the first one is
> selected it won't return the "2", how can it be solved?

> /Lasse



Thu, 06 Feb 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Making a value selected in a select box.

2. How to select values from group of select lists

3. Getting the link that is selected

4. Getting Option Selected in VBScript

5. Getting recordcount for a select in Outlook form

6. Getting the name and path of a selected file

7. Getting the link that is selected

8. Getting selected text from a textarea..

9. Getting the selected text in a TEXTAREA tag

10. Getting Form-Values

11. Getting value from an ActiveX Object

12. getting array values

 

 
Powered by phpBB® Forum Software