title: How to get the selected value and key from an html dropdown list in javascript on php
body: <pre><code> &lt;select id="facetList" style="width:120px;" class="text ui-widget-content ui-corner-all"&gt;
          &lt;?php
          foreach($claAddArray as $k =&gt; $v)
          {
             echo "&lt;option value=\"$k\"&gt;$v&lt;/option&gt;";
          }
          ?&gt;   
          &lt;/select&gt;
  
  
  
  
  $("#btnSubmit").click(function() {
  
      var $fId = ?????????????????
  
  
      });
  </code></pre>