title: Magento - Prototype.js and jQuery issue - Add to cart Button
body: <p>I'm build store with Magento and ran into a serious problem with jQuery and Prototype.js</p>
  
  <p>I imported/rendered new JS files as written in Mastering Magento Theme Design book, but on the product view page the add to cart button doesn't work.</p>
  
  <p>when I click on the button the following error appears:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'submit' of undefined onclick
  </code></pre>
  
  <p>I left everything the way it is in JS that are imported by Magento and added only these files:</p>
  
  <pre><code>default/js/jquery.min.js"&gt;
  default/js/bootstrap.min.js"&gt;
  default/js/jquery.scripts.js"&gt;
  default/js/chosen.jquery.min.js"&gt;
  </code></pre>
  
  <p>inside jquery.scripts.js file I have:</p>
  
  <pre><code>jQuery.noConflict();
  
  jQuery(document).ready(fucntion(){
  
  });
  </code></pre>
  
  <p>and I have no idea what is wrong with it.
  I've been looking for about 2 hours now but didn't find any wise solution or suggestion.</p>
  
  <p>the problems disappear when I remove jquery.min.js file only.</p>