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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:16:53+00:00 2026-06-15T12:16:53+00:00

I am appending html to a <ul> on an ajax success function. HTML <ul

  • 0

I am appending html to a <ul> on an ajax success function.

HTML

<ul id="revisionList">
  <!-- ajax.js will insert ordered list here based on number of revisions -->
</ul>

Ajax Success

success: function(json)
        {
            /*
            If successful build the list of revision links
            Links include link that will load images in next tab
            */

            //loop through revisions and display
            for(i = 0, j = json.revision_count.length; i < j; i++) {
                //count for revision number
                var k = i + 1;
                //revision number, does not match k
                var revisionID = json.revision_count[i].layout;
                $('#revisionList').append(
                    "<li><a onclick=\"initEditRevision(" + galleryID + ',' + revisionID + ")\" href=\"#editRev\" data-toggle=\"tab\">Revision " + k + "</a></li>"
                );
            }

        }

How do I go about fading in the whole <ul> after the list is built?

  • 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-15T12:16:54+00:00Added an answer on June 15, 2026 at 12:16 pm

    Try this

    success: function(json) {
        var $list = $('#revisionList');
            $list.hide();  // Hide Here
        for (i = 0, j = json.revision_count.length; i < j; i++) {
            var k = i + 1;
            var revisionID = json.revision_count[i].layout;
            $list
                .append("<li><a onclick=\"initEditRevision(" + galleryID + ',' +  
                         revisionID + ")\" href=\"#editRev\"
                        data-toggle=\"tab\">Revision " + k + "</a></li>");
        }
        $list.fadeIn('slow'); // Fade In here
    }​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am appending some html inside a table tag while performing each Ajax request.I
I have the following ajax success function. How can I act on the result
I have this code $(.insert).click(function(){ $(.insert).ajaxStop(function(){ $(.load).hide(); }); $(.insert).ajaxStart(function(){ $(.load).show(); }); $.ajax({ type: GET,
success: function (data, status) { var header = $(#MainDiv); header.html(null); var headertemplate = $(<table
I'm doing an ajax call. The function called on success looks as follows: function(data){
I'm loading new HTML/JS content using ajax and appending it to some div block
Via ajax i retrieve some json data, make it as html and append it
I have a jQuery/Ajax function that is appending 2 <option> s to a <select>
I'm using some javascript/jquery in an asp.net mvc view and I'm appending some html
I made a web app that loads images using jquery, ajax and json. I

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.