'undefined' is not a function (evaluating 'c.replace(bo,"-$1")')
<p>I need to use jQuery effects for showing or hiding a div. However I get an error in console after any of the following methods gets executed. </p>

<p>The animation completes for the first time, but after the animation completes the error is shown in Safari console and I am not able to apply any other jquery method on the same div again.</p>

<p>I am sure this is due to some other code is messing up in the application as the following code works fine in jsfiddle.</p>

<pre><code>$('#testDiv').slideDown() 
$('#testDiv').slideUp() 
$('#testDiv').show('slow') 
$('#testDiv').hide('slow') 
$('#testDiv').toggle('slow')
</code></pre>

<p>error</p>

<pre><code>TypeError: 'undefined' is not a function (evaluating 'c.replace(bo,"-$1")')
</code></pre>

<p>element</p>

<pre><code>&lt;div id='testDiv'&gt;text&lt;/div&gt;
</code></pre>
