I have a form which onchange passes values to a javascript function.
I have managed to get this.value and student.value passed but this.title does not return anything.
How would i go about getting the title of the option?
Thanks
<form>
<select id="student" style="width:100%">
<option value="">--</option>
<option value="">A</option>
</select>
<select id="course" onchange="showarchive(this.value, this.title, student.value)" style="width:100%"/>
<option value="">--</option>
<option value="" title="" class=""></option>
</select>
This is the title of the selected option.
Here is a JSFIDDLE.