Accessing the selected value from a Dynamically generated DropDown List

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
  1.  <select class="selectAggregate">      
  2.       <option>
  3.          Sum
  4.       </option>
  5.       <option>
  6.          Max
  7.       </option>
  8.       <option>
  9.          Min
  10.       </option>      
  11.    </select>
This is my Jquery code. 

  1. $('.selectAggregate'').each(function()
  2. {
  3. {
  4. var $val = $("option:selected",this).text();
  5. alert($val);
  6. }
  7. });
But sometime this Code works, but mostly its not getting the value.