Jquery获取元素标签名称
2016-03-08 16:43
429 查看
Jquery的获取元素标签名称的方法:
1、$( this ).get(0).tagName
2、$( this )[0].tagName
3、$( this ).prop("tagName")
4、$( this ).prop("nodeName")
1、$( this ).get(0).tagName
2、$( this )[0].tagName
3、$( this ).prop("tagName")
4、$( this ).prop("nodeName")
相关文章推荐
- jquery中的slice方法(个人使用总结)
- jquery创建一个新的节点对象(自定义结构/内容)的好方法
- jquery.pagination.js分页
- jquery.inArray()和splice()使用小记
- jQuery.prop() 函数详解
- jquery笔记(仅供个人参考)
- jQuery设置 select、radio、checkbox 默认选中的值
- jQuery插件imgAreaSelect
- jquery.qrcode.min.js生成二维码 通过前端实现二维码生成
- JQuery里的子元素过滤选择器,加空格与不加空格的区别
- jQuery.pagination.js---jquery自带分页
- jQuery
- jquery 中多条件选择器,相对选择器,层次选择器的区别
- jQuery实现的分页功能,包括ajax请求,后台数据,有完整demo
- 关于Jquery的parent和parents
- jQuery的filter方法和find方法的(个人使用总结)
- jQuery学习记录
- jQuery的选择器中的通配符[id^='code']或[name^='code']及jquery选择器总结
- jQuery 模块介绍
- jquery中unbind、bind注意事项