I’d like to remove only the first two BR tags with jquery.
<div id="system">
<BR CLEAR="ALL"><BR>// I want to remove both BR.
...
<BR>...
...
<BR>
I assume something like this. But I am not sure.
$('#system br').remove();
Could anyone tell me how to do this please?
Use
:lt()::lt()takes a zero-based integer as its parameter, so 2 refers to the 3rd element. So:lt(2)is select elements “less than” the 3rd.Example: http://jsfiddle.net/3PJ5D/