Opened 10 years ago
Closed 10 years ago
#12998 closed bug (notabug)
$('input').attr('tagName') !== 'INPUT'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I can't get the expected tagName of input (IE10, Firefox17, Chrome23, jQuery 1.6.2)
<input type="button" id="testInput" value="click me" onclick="show(this)" />
<script type="text/javascript"> function show(obj){
alert($(obj).attr("tagName"));
} </script>
Note: See
TracTickets for help on using
tickets.
There is no
tagName
attribute on that element. There is atype
,id
,value
, andonclick
attribute. I think you wanted.prop()
but ask on the forum.