码迷,mamicode.com
首页 > Web开发 > 详细

jQuery 获取有多个class名的元素

时间:2016-06-20 23:56:55      阅读:475      评论:0      收藏:0      [点我收藏+]

标签:

HTML内容:

          <div class="write-upload">                                           
                            <p class="write-files old-files">
                                <i class="ico ico-wjj"></i>policycustom1.xml<span onclick="deleteAttachment(this)">x</span>
                            </p>                        
                            <p class="write-files old-files">
                                <i class="ico ico-wjj"></i>bee2.jpg<span onclick="deleteAttachment(this)">x</span>
                            </p>                        
                            <p class="write-files old-files">
                                <i class="ico ico-wjj"></i>policycustom1.xml<span onclick="deleteAttachment(this)">x</span>
                            </p>                        
                            <p class="write-files old-files">
                                <i class="ico ico-wjj"></i>bee2_small.jpg<span onclick="deleteAttachment(this)">x</span>
                            </p>                        
                            <p class="write-files old-files">
                                <i class="ico ico-wjj"></i>bee2.jpg<span onclick="deleteAttachment(this)">x</span>
                            </p>                        
                        <input type="hidden" id="delNames" name="delNames" value="">
                    </div>

jQuery:

$(".write-files.old-files").remove();

 

jQuery 获取有多个class名的元素

标签:

原文地址:http://www.cnblogs.com/liaojie970/p/5602167.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!