title: JS : Onchange event activated at startup
body: <p>I have a selectbox like so :</p>
  
  <pre><code>&lt;select id="param2" name="param2" onchange="reload();"&gt;
  &lt;option value="sth"&gt;sth&lt;/option&gt;
  &lt;option value="sth2"&gt;sth2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The "onchange" event is activated at startup, when I load the file - but I want the event to be activated only when my selectbox item has changed. How can I do this, or did I do something wrong... ? The "reload" function is located at the top of the file, if it can help. Thanks in advance.</p>
  
  <p>EDIT : I use Firefox version 45 &amp; JQuery 1.7.
  Here is the JS code, just showing values for now :</p>
  
  <pre><code>&lt;script&gt;
  function reload() {
      var v1 = document.getElementById('param1').value;var v2 = document.getElementById('param2').value;
      alert(v1 + " "+ v2);}
  &lt;/script&gt;
  </code></pre>
  
  <p>EDIT2 : I found something. Somehow, there is a conflict with the following code. I'll try to manage this by myself, first.</p>
  
  <pre><code>&lt;script&gt;
    $(function () {
      $('select#param1').listbox();
      $('select#param2').listbox();
    });
  &lt;/script&gt;
  </code></pre>