title: How to use onchange and onload together
body: <p>I have function inside select
  but i want to execute function when page shows up(load) and when value is changed. Actually is executed only when value is changed.</p>
  
  <p>My code is here:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function go(x) {
    var text = x.options[x.selectedIndex].text;
    var elements = document.querySelectorAll('.ppselect2');
    elements.forEach(function(element) {
      element.value = text;
    });
  };</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;select class="dntselect" onchange="go(this); return false;"&gt;`</code></pre>
  </div>
  </div>
  </p>