title: get the value of the drop down in jquery on page load
body: <p>I want to get the value of the dropdown on document ready but i am getting only the first value of the drop down
  I have tried this</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      $(document).ready(function()
      {
          var car=$('.car').val();
          alert(car);
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;select class="car"&gt;
    &lt;option value="volvo"&gt;Volvo&lt;/option&gt;
    &lt;option value="saab"&gt;Saab&lt;/option&gt;
    &lt;option value="mercedes"&gt;Mercedes&lt;/option&gt;
    &lt;option value="audi"&gt;Audi&lt;/option&gt;
  &lt;/select&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>