title: How to get the previous selected value from a dropdown before onchange
body: <p>I know its the easiest question but can't get the correct answer.</p>
  <pre><code>&lt;div class=&quot;col-12 col-md-4 col-lg-5 mt10-xs&quot;&gt;
       &lt;p&gt;Status&lt;/p&gt;
       &lt;div class=&quot;form-group FL mr20 w100-xs&quot;&gt;
             &lt;div class=&quot;rsi-custom-select&quot;&gt;
                   &lt;select class=&quot;form-control&quot; id=&quot;statustab_{{ $row['placementkey'] }}&quot; class=&quot;select2-selecting&quot; onchange=&quot;listingByStatus(this,'{{ $row['placementkey'] }}')&quot;&gt;
                       @foreach($placementStatus as $pl)
                          &lt;option @if($pl['placement_status_id'] ==  $row['statusid'] ) selected @endif value=&quot;{{$pl['placement_status_key']}}&quot;&gt;{{$pl['placement_status']}}&lt;/option&gt;
                       @endforeach
                   &lt;/select&gt;
              &lt;/div&gt;
        &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>This is my <code>onchange</code> function. In this How Can I get the previous Selected Value from my select box?</p>
  <pre><code>function listingByStatus(ths,key){
        var thisSelect = $('#statustab_'+key).text();
        var statusText = $( &quot;#statustab_&quot;+key+&quot; option:selected&quot; ).text();
        var currentval = $( &quot;#statustab_&quot;+key+&quot; option:selected&quot; ).val();
  }
  </code></pre>