title: How to pass on change, the value of a drop down list to a PHP variable?
body: <p>my question is how can I get the value of the current selected option </p>
  
  <pre><code>&lt;select id="termid" class="selectfield"&gt;
      &lt;option&gt;Επιλέξτε&lt;/option&gt;
      &lt;option value="1"&gt;Number1&lt;/option&gt;
      &lt;option value="2"&gt;Number2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and use it as a PHP variable in <code>$value</code> <strong>without submiting or updating the page</strong>?</p>
  
  <pre><code>&lt;?php echo get_post_meta($value, "Note1", true); ?&gt;
  </code></pre>
  
  <p>I made use of this to load a file but I can not do it for the above.</p>
  
  <pre><code>$(document).ready(function() {
      $('#termid').change(function() {
          var val = $(this).val();
          $('#reservationdetails').empty().addClass('loading').load('../' + val + '.php', function(){$('#reservationdetails').removeClass('loading') });
      });
  });
  </code></pre>
  
  <p>Thank you for any help</p>