5490 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 2 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

5490 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

1448 posts
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Had an item featured in an Envato Pack
+3 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
+3 more
dekciw says

console.log($allextended)

5490 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();
    }  
});?
by
by
by
by
by
by