Use nextAll
nextAll
$('#i_2').nextAll().remove()
$("#container div:gt(1)").remove();
Another alternative.