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">
<option>
Sum
</option>
<option>
Max
</option>
<option>
Min
</option>
</select>
This is my Jquery code.
$('.selectAggregate'').each(function()
{
{
var $val = $("option:selected",this).text();
alert($val);
}
});
But sometime this Code works, but mostly its not
getting the value.