jquery, delete some specific child nodes
来源:互联网 发布:零基础学大数据算法 编辑:程序博客网 时间:2024/06/16 14:27
delete all the non-button child nodes of $('campaign-labels')
<div class="col-sm-7" id="campaign-labels"> <button type="button" class="btn btn-default" data-toggle="modal" data-target=".campaign-modal-lg"> <span class="glyphicon glyphicon-plus" aria-hidden="true"> </span> </button> <span class="label label-default">Souhu app test</span> <span class="label label-primary">test for sohu mobile</span> <span class="label label-info">搜狐测试-勿动</span></div>
$('#campaign-labels').contents().filter(function(){return this.type != 'button';}).remove();
0 0
- jquery, delete some specific child nodes
- How to Make Browsers Delete Specific Cookies
- 【jQuery】parent > child选择器
- 【JQuery】parent > child选择器
- jQuery parent>child
- jQuery :nth-child() 选择器
- Delete child objects in Entity Framework
- ASTreeView Demo:Add, Edit & Delete nodes
- ASTreeView Demo:Add, Edit & Delete nodes
- JQuery nth-child的使用
- parent > child选择器(jQuery)
- jquery 选择器 之 nth-child
- Jquery 选择器(:last-child)详解
- jquery子元素过滤选择器:nth-child、:first-child、:last-child、:only-child
- Some JavaScript Codes or Nodes Collected from Web
- PRJ: Split a nodes-map into some triangles
- jquery 的:first-child 和:last-child 选择器实例
- jQuery选择器 – 后代过滤(Child Filters)
- windows和linux换行规则的区别
- mac 上如何查看.a 静态库文件是否支持64位,
- 广告竞价科普扫盲
- linux上 mysql 密码忘记
- C++调用Matlab编程-C++调用Matlab的.m文件
- jquery, delete some specific child nodes
- 理解javascript回调函数
- 工具下载
- this is a test
- Sicily 13980. Record Keeping
- LeetCode 172. Factorial Trailing Zeroes
- android BKS
- 真机调试The entitlements specified in your application’s Code Signing Entitlements file do not match tho
- C51启动文件详解