How can I get the selected text (not the selected value) from a drop-down list in jQuery?
$(function () { alert('.val() = ' + $('#selectnumber').val() + ' AND html() = ' + $('#selectnumber option:selected').html() + ' AND .text() = ' + $('#selectnumber option:selected').text()); });
one two three four