I got a problem, I want to add onchange javascript on the selection tag. It is working if the selection tag puts without the form tag, but after I put the selection tag inside the form tag it's stop working,
If I put the selection tag without the form tag it would be okay but when I put the selection tag inside the form tag it's not working anymore
<form>
<select id="selection1" onchange="selection1();">
<option value="1.1">1.1</option>
<option value="1.2">1.2</option>
<option value="1.3">1.3</option>
</select>
<input type="text" id="selectionval" />
</form>
<script type="text/javascript">
function selection1() {
var id = document.getElementById("selection1");
var displayedText = id.options[id.selectedIndex].text;
document.getElementById("selectionval").value = displayedText;
}
</script>