preventDefault() on an <a> tag
<p>I have some html/jquery that slides a div up and down to show/hide it, when a link is clicked:</p>

<pre><code>&lt;ul class="product-info"&gt;
  &lt;li&gt;
    &lt;a href="#"&gt;YOU CLICK THIS TO SHOW/HIDE&lt;/a&gt;
    &lt;div class="toggle"&gt;
      &lt;p&gt;CONTENT TO SHOW/HIDE&lt;/p&gt;
    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>and my jquery...</p>

<pre><code>$('div.toggle').hide();
  $('ul.product-info li a').click(function(event){
    $(this).next('div').slideToggle(200);
  }   
);
</code></pre>

<p>My question is: How do I use preventDefault() to stop the link acting as a link and adding # to the end of my URL &amp; jumping to the top of the page? I can't figure out the right syntax, I just keep getting an error saying that preventDefault() is not a function.</p>
