I have written the following code;
<label for="System">Symptom</label>
<label for="Symptom">
<select name="Symptom" id="SymptomId" onchange="Symselect()">
<p id="demo"></p>
<script>
function Symselect() {
var x = document.getElementById("Symptomid").value;
document.getElementById("demo").innerHTML = "You selected: " + x;
}
</script>
This is not working. When a select an item on the dropbox , it should display the selection. Similar to http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onchange.
Kindly assist .
Azhar