title: How to submit a form with dropdown selected value only?
body: <p>I want to submit a form which has just one dropdown with language values and i want to submit form and get access to that value so that i can localize some text on the page.</p>
  
  <p>This is the code i am using but not able to access the post values</p>
  
  <p><strong>html form:</strong></p>
  
  <pre><code>&lt;form action='' method='post'&gt;
  &lt;select id="lang"&gt;
      &lt;option value="english"&gt;Eng&lt;/option&gt;
      &lt;option value="arabic"&gt;Arabic&lt;/option&gt;
  &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>jQuery to submit the form:</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
      jQuery(function($){
          var lang = $("#lang").val();
          var Home = 'الرئيسية';
  
          $("#lang").change(function(){
              cntr = $("#lang option:selected").val();
  
              if(lang=="arabic"){
                  $(".menu ul li a:eq(0)").text(Home);
              }
              $('form').submit();
          });
      });
  
  
  &lt;/script&gt;
  </code></pre>