EV: attr() and prop() in jQuery

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

posted on 2015-03-05 13:32  weihongji  阅读(130)  评论(0编辑  收藏  举报

导航