Accessing the selected value from a Dynamically generated DropDown List
I have created multiple Dropdown list dynamically with the class "selectAggreagate". But when I trying to get the selected option I cant get the value of dynamically generated one.
This is my drop down list
This is my html code snippet
- <select class="selectAggregate">
This is my Jquery code.
- var $val = $("option:selected",this).text();
But sometime this Code works, but mostly its not getting the value.