var colDdl = $('#ColumnSelection').text();
var filterDdl = $('#FilterOptions').text();
Above is my code where I am trying to get the text of the selected dropdown list item. If i use the .val()
, I get the value(1,2,3 etc). How do I get the text. Above code gives me null in the respective variables colDdl and filterDdl.