在"n"之后添加一些内容.使用jQuery的元素 [英] Add something after the "n" element using jQuery

查看:70
本文介绍了在"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.

这篇关于在"n"之后添加一些内容.使用jQuery的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆