option
s don't fire mouse events in chrome.
For a select
element you'd use the onchange
event on the select itself, and the value of the select will always be the same as the selected option
<select onchange="question_type(this.value);" name="qtype" id="qtype" class="form-control input-lg" required>
<option value="">-- Select question type for this quiz --</option>
<option value="mcq">1) MCQs</option>
<option value="tf">2) True/False</option>
</select>
with jQuery it would be
$('select').on('change', function() {
var selected = this.value;
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…