Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9009905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:19:18+00:00 2026-06-16T02:19:18+00:00

How to extend a jQuery plugin? currently I am using multiopen accordion plugin. I

  • 0

How to extend a jQuery plugin?

currently I am using multiopen accordion plugin.

I need to add new feature like once the expand/collapse is finished I need to callback a function as like change event in jquery ui accordion plugin.

How to add this feature in this plugin.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:19:20+00:00Added an answer on June 16, 2026 at 2:19 am
    $.extend($.ui.multiAccordion, {    
        // private helper method that used to show tabs
        _showTab: function($this) {
            var $span = $this.children('span.ui-icon');
            var $div = $this.next();
            var options = this.options;
            $this.removeClass('ui-state-default ui-corner-all').addClass('ui-state-active ui-corner-top');
            $span.removeClass('ui-icon-triangle-1-e').addClass('ui-icon-triangle-1-s');
            // MODIIFICATION
            bindThis = this;
            var ui = {
                tab: $this,
                content: $this.next('div')
            }
            $div.slideDown('fast', function(){
                $div.addClass(options._classes.divActive);
                // MODIFICATION
                bindThis._trigger('tabShownComplete');
            });
            this._trigger('tabShown', null, ui);
        },
    
        // private helper method that used to show tabs 
        _hideTab: function($this) {
            var $span = $this.children('span.ui-icon');
            var $div = $this.next();
            var options = this.options;
            $this.removeClass('ui-state-active ui-corner-top').addClass('ui-state-default ui-corner-all');
            $span.removeClass('ui-icon-triangle-1-s').addClass('ui-icon-triangle-1-e');
            // MODIIFICATION
            bindThis = this;
            var ui = {
                tab: $this,
                content: $this.next('div')
            }
            $div.slideUp('fast', function(){
                $div.removeClass(options._classes.divActive);
                // MODIFICATION
                bindThis._trigger('tabHiddenComplete', null, ui);
            });
            this._trigger('tabHidden', null, ui);
        }
    });
    
    • https://gist.github.com/4342758
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using the confirmaction jQuery plugin found here: http://www.webstuffshare.com/2010/03/jquery-plugin-jconfirmaction/ And my question is
I am currently using the jQuery center plugin to center my div element and
I'm new to Jquery plugin creation. Following jquery plugin is created using jQuery Boilerplate.
I'm new in jquery plugin. I need to specify totalWidth as an option so
It's very easy to copy a javascript object in jQuery using jQuery.extend() function call.
I'm using two jquery plugins. Both extend jquery with a prototype function removeTag .
I'm using a a jQuery plugin to evaluate password strength. It gives a graphical
I'm using a jquery plugin that is supposed to accept options, but isn't for
Currently I'm writing a jQuery plugin with some options. An example simplified piece of
I am using http://www.antiyes.com/jquery-blink-plugin for blinking images on my document. Code of that plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.