R
Robin
I'm not very good at js, so I'm guessing that I definitely have something
wrong here ...
<head>
<script language="JavaScript">
function testFunc(form){
var tmp1 =
document.form.site.options[document.form.site.selectedIndex].value;
document.write tmp1
}
</script>
</head
.... <form method='post' name='form'>
<select name="site" onChange="javascript:testFunc(this)">
<option value='#'>--- (Select Site) ---
(there is a list here of <option value=".... > that is called
from a db)
</select>
Anyway, nothing is happening onChange
Where have I gone wrong?????
wrong here ...
<head>
<script language="JavaScript">
function testFunc(form){
var tmp1 =
document.form.site.options[document.form.site.selectedIndex].value;
document.write tmp1
}
</script>
</head
.... <form method='post' name='form'>
<select name="site" onChange="javascript:testFunc(this)">
<option value='#'>--- (Select Site) ---
(there is a list here of <option value=".... > that is called
from a db)
</select>
Anyway, nothing is happening onChange
Where have I gone wrong?????