Remove all elements after certain element September 17, 2023 by Tarik You could use the .nextAll() method: $('#element1').nextAll('div').remove();