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

  • Home
  • SEARCH
  • 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 7767537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:42:10+00:00 2026-06-01T15:42:10+00:00

I am trying to rebind the li tags by removing it and again rebinding

  • 0

I am trying to rebind the li tags by removing it and again rebinding it. The ul tag is generated dynamically. My code to remove the li tags is this…

$("#ulActivity li").remove();

this line is removing all li tags perfectly, but append new set of li is not working…

$.each(objTaskActivityList, function(i,v){                    
     $("#ulActivity ul").append('<li><a onclick="javascript:openfile(\''+v.DOCName+'\')">'+v.DOCName+'</a></li>');
});

where i am doing mistake..

  • 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-01T15:42:11+00:00Added an answer on June 1, 2026 at 3:42 pm

    I think you should do

       $.each(objTaskActivityList, function(i,v){                    
           $("#ulActivity").append('<li><a onclick="javascript:openfile(\''+v.DOCName+'\')">'+v.DOCName+'</a></li>');
       });
    

    $(“#ulActivity ul”) targets an <ul> that is a descendant of the element with id= ulActivity, which i think is your <ul>

    In any case you should try to handle situations like these with an approach that is different from “Remove” and “Reattach”, but how to that exactly depends from your needs

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

Sidebar

Related Questions

i got this error while trying to rebind a grid: ( Parent page (
Trying to keep all the presentation stuff in the xhtml on this project and
Is it possible to bind/rebind a RadListView's datasource using Ajax? What I'm trying to
Trying to get my css / C# functions to look like this: body {
Trying to make a make generic select control that I can dynamically add elements
Trying to use regex refind tag to find the content within the brackets in
I am trying to rebind the keydown event on focusout. Not really sure how
Is there an existing Linux/POSIX C/C++ library or example code for how to rebind
I'm trying to create a iterator like this one , for a list of
I’ve run into a little bit of an annoyance whilst trying to rebind a

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.