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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:34:14+00:00 2026-05-25T19:34:14+00:00

I have a set of selected elements using: $(selector).nextUntil(‘tr.some_class’); And I want to be

  • 0

I have a set of selected elements using:

$(selector).nextUntil('tr.some_class');

And I want to be able to replace the entire contents with new HTML.

jQuery has replaceWith and replaceAll methods, which will replace each element with the selected html, but I’m not trying to insert html into each element, I’m trying to to a mass HTML replacement.

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

    How about:

    $(selector).nextUntil('tr.some_class').remove().append("<blah>");
    

    UPDATE

    Assuming you want both the selector and tr.some_class TRs to remain (the behavior of nextUntil) AND that selector identifies a single row, you can do this like so:

    $("tr#id1").nextUntil('tr.some_class').remove();
    $("tr#id1").after("<tr><td>g</td><td>g1</td></tr>");
    

    http://jsfiddle.net/6WTNr/4/

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

Sidebar

Related Questions

I have a set of selected elements in jQuery: <div class=element></div> <div class=element></div> <div
I have a button, where I set its image and its selected & highlighted
I have set up upload_max_filesize and post_max_size to 32Mb in php.ini. I am using
I'm using the following code to set a bunch of DataGridViewRow elements to be
I have a page that is set up using a tab interface. When a
Form contains two dropdown lists created using code below. Both dropdown list elements have
I have a drop down selection box and using jQuery if statements i want
I need to remove all attributes set on certain elements (using vanilla JS or
I have a simple select element that I want to set the value for
I have set the eclipse java formatter to wrap lines that exceed 120 characters

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.