?
???????J
Javascript may inquire the push down menu value, can I inquire the
description?
The following example, the variable($answer) can be get the menu1's
value.
For example, if I select first data, the menu1's value would be 1.
Therefore ($answer) would be 1.
But If want using javascript get the description(ABC),which javascript
command can do it?
e.g.
<script>
function this() {
$answer = document.form1.menu1.value;
}
</script>
<form name="form1" method="post" action="">
<select name="menu1" onChange="this();">
<option value=1>ABC</option>
<option value=2>DEF</option>
<option value=3>GHI</option>
<option value=4>JKL</option>
</select>
</form>
description?
The following example, the variable($answer) can be get the menu1's
value.
For example, if I select first data, the menu1's value would be 1.
Therefore ($answer) would be 1.
But If want using javascript get the description(ABC),which javascript
command can do it?
e.g.
<script>
function this() {
$answer = document.form1.menu1.value;
}
</script>
<form name="form1" method="post" action="">
<select name="menu1" onChange="this();">
<option value=1>ABC</option>
<option value=2>DEF</option>
<option value=3>GHI</option>
<option value=4>JKL</option>
</select>
</form>