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.
How about:
UPDATE
Assuming you want both the
selectorandtr.some_classTRs to remain (the behavior of nextUntil) AND thatselectoridentifies a single row, you can do this like so:http://jsfiddle.net/6WTNr/4/