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 6072861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:12:24+00:00 2026-05-23T10:12:24+00:00

I use a nice way to make collapsible fieldsets using Collapsible jQuery Plugin :

  • 0

I use a nice way to make collapsible fieldsets using Collapsible jQuery Plugin:

$("fieldset").collapse();

Everything works fine while no fieldsets are added dynamically.
It is possible to bind events like ‘click’ using .live() function, I wonder if it’s possible to automatically add .collapse() to all dynamically added fieldsets.

I tried:

$("fieldset").live('ready', collapse);

and

$("fieldset").live('ready', function () {
    $("fieldset").collapse();
});

But it doesn’t work. Changing ‘ready’ to ‘load’ doesn’t help too.

Is there any way to apply some UI goodies like “.colapse()” to new dynamically inserted DOM elements?

Thanks a lot.

  • 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-05-23T10:12:25+00:00Added an answer on May 23, 2026 at 10:12 am

    jQuery .live() method needs some event to be triggered. It’s not possible to use .live() or .delegate() to process newly added content through the AJAX callback.

    In order to do so you need to use livequery plugin.

    This how to replace $.livequery with $.delegate or $.live forum thread describes the details of the problem and solution.

    In my case the solution (with livequery plugin enabled) is:

     $('fieldset').livequery(function () {
         $(this).collapse();
     });
    

    Works like a charm 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'll use the jQuery plugin for presenting the user with a nice interface The
What's the best way to make an element unselectable using jQuery? I know you
The SWT-Gui looks very nice. Is there an easy way to use it in
I'm trying out this nice way of customizing grouped UITableViewCell backgrounds: http://code.coneybeare.net/how-to-make-custom-drawn-gradient-backgrounds I've implemented
Using online interfaces to a version control system is a nice way to have
I am trying to use jQuery to parse an in-memory XML document. This works
Hi are there any nice videos on how to use exceptions in Delphi.
I'm trying to use this library (which looks very nice) but I'm having difficulty
Hi are there any nice videos or other resources on how to use Interfaces
I have this nice little MSBuild-based daily build setup that I use on my

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.