title: object is not a function
body: <p>I made a pretty huge script for a form and everything works fine except that my select with onchange() doesnt work at all, but only in THIS script. If I try to do it on a blank page (just put a script tag, put my js inside of it, put my html code with my select tag, etc...everything works fine).</p>
  
  <p>So my question is : Why is my function modele isn't working at all? Is there any kind of issu inside my head tag? Thx!</p>
  
  <p>P.S. This is what I get in the console : Uncaught TypeError: object is not a function </p>
  
  <pre><code>   &lt;head&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  
  
      function modele(form) {
          var x = form.marque.selectedIndex;
          alert(x);
      }
  &lt;/script&gt;
      &lt;style&gt;
          [...]
      &lt;/style&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>inside my body :</p>
  
  <pre><code>&lt;form action="&lt;?= $_SERVER['PHP_SELF'] ?&gt;" method="post" id="credit"&gt;
  [...]
  &lt;td&gt;&lt;label for="marque"&gt;Marque :&lt;/label&gt;&lt;/td&gt;
                      &lt;td&gt;
                          &lt;select id="marque" name="marque" onChange="modele(this.form)"&gt;
                              &lt;option&gt;&lt;/option&gt;
                              &lt;option&gt;Acuras&lt;/option&gt;
                              &lt;option&gt;Hondas&lt;/option&gt;
                              &lt;option&gt;&lt;/option&gt;
                              &lt;option&gt;&lt;/option&gt;
                          &lt;/select&gt;
                      &lt;/td&gt;
                      &lt;td&gt;&lt;label for="modele"&gt;Modele :&lt;/label&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;select id="modele" name="modele"&gt;
                              &lt;option&gt;&lt;/option&gt;
                          &lt;/select&gt;
                      &lt;/td&gt;
  [...]
  &lt;/form&gt;
  </code></pre>