5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Just created this fiddle Test Link

I am getting error : TypeError: $allextended.slideUp() is not a function

I have to be totally honest , this isnt all my code. So just need help, fixing console error. Declaring function

320 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Won a Most Wanted contest
+4 more
SuggeElson says

Warp js code with Dom ready function

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Warp js code with Dom ready function

wrap ?

okies hmmm

So now I have:

$(document).ready(function() {
    $('.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());   
    });
});

Still same error

1569 posts
  • Helped protect Envato Market against copyright violations
  • Has sold $5,000+ on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Had an item featured in an Envato Pack
+4 more
WebSmacker says

It works for me on Chrome. You must have found the fix?

332 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
dekciw says

console.log($allextended)

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

fix:

$('.holder').on('click','a',function(e){   
    e.preventDefault();
    var $allextended = $(this).closest('.wrapperdoo').find('.extended'),
        $extended = $allextended.eq( $(this).index() ),
        doIt = undefined;

    if ($extended.is(":visible")) {
        doIt = $extended.slideUp();            
    } else {
        $allextended.slideUp();
        doIt = $extended.slideDown();
    }  
});?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by