title: how to get the first option value in jquery
body: <p>I'm using ajax on success im getting this result.so what i need is i need to get the first value <code>22</code> how can i do that in jquery ?</p>
  
  <pre><code>&lt;option value=22&gt;Bed&lt;/option&gt;
  &lt;option value=23&gt;Bath&lt;/option&gt;
  &lt;option value=24&gt;Kitchen&lt;/option&gt;
  &lt;option value=25&gt;Living&lt;/option&gt;
  &lt;option value=26&gt;Foam&lt;/option&gt;
  </code></pre>
  
  <p>What i have tried is </p>
  
  <pre><code>$j.ajax({
      type: "POST",
      url : "{{ URL::to('getcategoryname') }}",
      data : {'GroupID':GroupID},
      success : function(data){       
          console.log(data.split('option').val()); //my tried line
  
         }
      });
  </code></pre>