Side navigation
#12998 closed bug (notabug)
Opened December 04, 2012 02:43AM UTC
Closed December 04, 2012 02:46AM UTC
$('input').attr('tagName') !== 'INPUT'
Reported by: | subchen@gmail.com | 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>
Attachments (0)
Change History (1)
Changed December 04, 2012 02:46AM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
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.