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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:43:18+00:00 2026-06-16T03:43:18+00:00

In the below code how can i add one line after every row in

  • 0

In the below code how can i add one line after every row in jquery.i am creating an menu dynamically by using of json.so when i get all data i populate it in my menu,but in menu all data look like simple becouse of that i cant differentiate perticuler row.so that why i have to put one horizontal line after every row.can any one help me for putting line after every row in below clde.line is after li.

$.each(yourJson.data, function (i) {
    var li = $('<li/></br>').on('click', function () { window.location = "HTMLPage.htm" })
        .addClass('yourCssClass')
        .attr('data-theme', 'c')
        .appendTo(list);
    var aaa = $('<a/>')
        .html(yourJson.data[i].name + " <span class='patient-list_txt2-blue'>" + yourJson.data[i].dateTime + "</span>")
        .attr('data-transition', 'slide')
        .appendTo(li);
});
  • 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-16T03:43:20+00:00Added an answer on June 16, 2026 at 3:43 am

    This should work:

    $('li').after('<hr class="line"></hr>');
    

    Add it afterwards:

    $.each(yourJson.data, function (i) {
        var li = $('<li/></br>').on('click', function () { window.location = "HTMLPage.htm" })
        .addClass('yourCssClass')
        .attr('data-theme', 'c')
        .appendTo(list);
    
        var aaa = $('<a/>')
        .html(yourJson.data[i].name + " <span class='patient-list_txt2-blue'>" + yourJson.data[i].dateTime + "</span>")
        .attr('data-transition', 'slide')
        .appendTo(li);
    });
    
    // After the loop
    $(yourJson.data).find('li').after('<hr class="line"></hr>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the code below I can insert a new row to my table (
In the below code where T : WsgTypes.RouteRestriction, can I add multiple classes so
In past, I am using Listview and using below code can show a particular
Can somebody explain to me what the below code is doing. before and after
In my Javascript code after the line below: url: ....../Misc-2/Ci-TodoList/index.php/home/jsonAddData, I am getting the
From the disassembly code below can I assume that the location 43E010 is a
It is a compiler error or runtime error? The code below can be compiled!
How can the code below be modified, such that I can use the arrow
W.r.t code below I can not declare the type of fetch-into-variable as the underlying
In the below code onclick edit how can the value of tag test be

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.