JQuery – Remove everything after an element September 5, 2023 by Tarik Use nextAll $('#i_2').nextAll().remove()