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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:08:28+00:00 2026-05-29T19:08:28+00:00

I am trying to add a jquery-ui selectable to data that is returned from

  • 0

I am trying to add a jquery-ui selectable to data that is returned from a jquery .post(). It seems as though the selector for that is created in the data from the post is not being recognized. I am thinking that I can use .live() but i’m not sure.

This is the code that I am using:

$.post('middleman.php', { request:"getfeedbacknav"}, function(data) {
       $('#feedbacknav').html(data);
});
$( "#selectable" ).selectable();

Here is the data that I am trying to make selectable:

<div id="feedbacknav" width="20%">
<h3>Feedback</h3>
<br>
<ol id="selectable" width="100%">
    <li class="ui-widget-content">
        <div width="8%"><img src="image/faces/sad_face_3.png" width="25px" height="25px">
        </div>
        <div width="88%" style="padding-top:8px;" id="fb_5678908'">
            intial feedback
        </div>
    </li>
    <li class="ui-widget-content">
        <div width="8%"><img src="image/faces/happy_face_3.png" width="25px" height="25px">
        </div>
        <div width="88%" style="padding-top:8px;" id="fb_1328896423'">
            Server : Bryan
            Comments : Ok
        </div>
    </li>
    <li class="ui-widget-content">
        <div width="8%"><img src="image/faces/happy_face_2.png" width="25px" height="25px">
        </div>
        <div width="88%" style="padding-top:8px;" id="fb_1328898803'">
            Server : Russ
            Comments : He was nice
        </div>
    </li>
</ol>

The ol is showing up when I inspect in chrome but it is not showing up when I view the page source. I am not getting any errors either.

  • 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-29T19:08:29+00:00Added an answer on May 29, 2026 at 7:08 pm

    You have to call .selectable after the HTML from the server is returned and is rendered in the browser. the way you have it now, it would be called immediately after the Post and the result of the Post is not yet available and so $( “#selectable” ) is empty.

    $.post('middleman.php', { request:"getfeedbacknav"}, function(data) {
        $('#feedbacknav').html(data);
        $( "#selectable" ).selectable();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add a serialized selectable from Jquery Ui to a view
I'm trying to add multiple jQuery data entries to a single element. I suspected
I'm trying to add a jQuery validator rule dynamically and it's not working. It
I'm trying to add a bit of jQuery code to all elements that have
I'm trying to add a table row with ajax/jquery that has a form element
Currently I'm trying to add on to the auto-complete module for jquery that is
I am trying to add some jQuery to a Wordpress site so that when
I'm trying to add a close a jquery ui dialog box from an ajax
I'm trying to add a jQuery post to some JavaScript on a web page.
I am trying to add some existing functionality to a site that uses jQuery

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.