在"n"之后添加一些内容.使用jQuery的元素

问题描述:

对于像这样的标记

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

例如如何在第二个DIV之后添加一些标记?

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

谢谢,
tilt

Thanks,
titel

尝试

另请参阅 :nth-child()选择器的jQuery页面上的示例.

See also the example on the jQuery page of the :nth-child() selector.