title: Get Default Value From select field Javascript
body: <p>I have a select field that have have present options and I have a php script check a mysql database and add a select tag to the one currently being used.</p>
  
  <p>I need to find a way to know if the user have changed the select field or not before submitting it.</p>
  
  <pre><code>var Access = document.forms[UIDF]["Access"].value;
  var DAccess = document.forms[UIDF]["Access"].defaultIndex; &lt;--- This is my problem. I just need to know how to get the selected option value as this keep changing with every user
  
  &lt;select name="Access"&gt;
    &lt;option value="0" selected='selected'&gt;Employee&lt;/option&gt;
    &lt;option value="1"&gt;Team Leader&lt;/option&gt;
    &lt;option value="2"&gt;Admin&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>