title: How to get current selected value of Multiselect Dropdown or Select2 Dropdown?
body: <p>I have a requirement to show a popup when (Multiselect or Select2) Dropdown is selected if the selected dropdown value having a "YES" value in db. I Posted a ajax call having the ID of current selected value of the dropdownlist.</p>
  
  <p>Am getting values as array type, I need to get a value of the particular option which is selected by User. So that I will check that value having "YES" value in DB,</p>
  
  <p><strong>The problem is :</strong> 
  Am getting value always as first selected item.</p>
  
  <p><strong>I Have tried these steps:</strong> </p>
  
  <p>var id = </p>
  
  <ul>
  <li>$(".select2 option:selected").val();</li>
  <li>$(this).val();</li>
  <li>$(this).find('option:first').next().val();</li>
  <li>$(this).last().val();</li>
  </ul>