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

attr() and prop() in jQuery

时间:2015-03-05 14:16:18      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

Keywords: attribute, property, Html DOM element, javascript

 

$("#textbox1").attr("tagName") returns undefined.

$("#textbox1").prop("tagName") returns INPUT.

 

Reference: http://blog.sina.com.cn/s/blog_655388ed01017cnc.html

attr() and prop() in jQuery

标签:

原文地址:http://www.cnblogs.com/weihongji/p/4315583.html

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