title: get a variable value from select and pass this to another JS file
body: <p>I experience a problem to get value from select and put it on a var.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;select id="customer_select"" name="customer_select" class="select" onchange="findcustid(this.value)" &gt;';
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>function findcustid() {
      var cus = document.getElementById('customer_select');
      var customer_select = cus.options[cus.selectedIndex].value;
  }
  var customer_id = customer_select;
  </code></pre>
  
  <p>Any help is appreciated!</p>