Usually I use $(\"#id\").val()
to return the value of the selected option, but this time it doesn\'t work.
The selected tag has the id aioConceptName
Using jQuery, just add a change
event and get selected value or text within that handler.
If you need selected text, please use this code:
$("#aioConceptName").change(function () {
alert($("#aioConceptName :selected").text())
});
Or if you need selected value, please use this code:
$("#aioConceptName").change(function () {
alert($("#aioConceptName :selected").attr('value'))
});