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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:06:27+00:00 2026-06-10T20:06:27+00:00

Does anyone can help me with applying jqueryUI method to dynamically generated content in

  • 0

Does anyone can help me with applying jqueryUI method to dynamically generated content in my webapp.
This content here is generated dynamically through an ajax call-:

<div class="streamOptionsContainer">
<button id="delete_post" title="Delete Post"></button>
</div>

problem is that when I use jqueryUI method:-

$("button[id=delete_post]").button();

on the dynamically generated button it doesn’t work, while the above mentioned jqueryUI method is working for all static content.

  • 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-10T20:06:29+00:00Added an answer on June 10, 2026 at 8:06 pm

    Use .on() method.

    $("button[id=delete_post]").on("load", function(){
        $(this).button();
    });
    

    Since you are using an ID, you can do this way:

    $("#delete_post").on("load", function(){
        $(this).button();
    });
    

    Also, if you are loading it after an ajax call, you can use the success: function in it.

    $.ajax({
        success: function(){
            $("#delete_post").button();
        }
    });
    

    Correct my syntax if wrong. 🙂

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

Sidebar

Related Questions

Does anyone can help about to serialize my tastypie api to response with plist
I'm new to KnockoutJs and I wonder if anyone can help with this. I
Can anyone help with this I really can't see what is wrong. I have
Does anyone can help me converting these rules to [ISAPI_Rewrite]. Thanks. RewriteEngine On RewriteCond
does anyone know where I can download this zip file called businessdays.zip which was
Can anyone help: Required: SSIS Package to loop through a folder (containing 100 files)
Does anyone can help me with caching a json string in Trigger.io? I have
Please, can anyone help me with this: perl -e 'print for <{a,b,c}{1,2,3}>' I just
Does anyone how can I check whether the mailserver I use is down or
Does anyone use hashCode() anywhere? Can anyone give me an example of the exact

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.