jquery error undefined function
<p>I created this fiddle from code found on Stack, but it is firing an error. Can you help please.</p>

<p>My Fiddle: <a href="http://jsfiddle.net/422steve/DVNGc/" rel="nofollow">http://jsfiddle.net/422steve/DVNGc/</a></p>

<p>Original anser : <a href="http://stackoverflow.com/a/13000179/501173">http://stackoverflow.com/a/13000179/501173</a></p>

<p>Error I am getting is: TypeError: $allExtended.slideUp() is not a function</p>

<p>js:</p>

<pre><code>$('.holder').on('click','a',function(e){   
    e.preventDefault();
    var $allExtended = $(this).closest('.wrapperdoo').find('.extended'),
        $extended = $allExtended.eq( $(this).index() ),        
        doIt= ($extended.is(':visible')) ? $extended.slideUp() : ($allExtended.slideUp()) ($extended.slideDown());   
});
</code></pre>
