• Resolved cjmox

    (@cjmox)


    I need to know how to hack the plugin so that if an element is already expanded when another one is clicked, the original expanded element collapses when the next element is expanded.

    This can be achieved by adding a rel tag to the shortcode, but I want this behavior by default without having to add to the shortcode.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I wouldn’t hack the plugin for this. If they update it, it will over write your hack. Plus you can do it pretty simply.

    jQuery("span.collapseomatic").attr("rel", "c-highlander");

    That will add the -highlander rel to all the spans the plugin makes thus achieving what you are asking for.

    Thread Starter cjmox

    (@cjmox)

    Good idea, that worked perfectly. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jQuery Collapse-O-Matic’ is closed to new replies.