5071 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
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

252 posts
  • Sold between 50 000 and 100 000 dollars
  • Most Wanted Bounty Winner
  • Microlancer Beta Tester
  • Europe
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • Exclusive Author
SuggeElson says

Warp js code with Dom ready function

5071 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
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

1363 posts
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
  • United States
WebSmacker says

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

331 posts
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Microlancer Beta Tester
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
dekciw says

console.log($allextended)

5071 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
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