Add something after the n element using jQuery

0 votes

For a markup like

<div id="holder">
    <div>div 1</div>
    <div>div 2</div>
    <div>div 3</div>
    <div>div 4</div>
</div> 

how do add some markup after the second DIV for instance?

Jul 27, 2022 in Web Development by gaurav
• 25,250 points
• 1,084 views