Skip to main content

Bug Tracker

Side navigation

#11468 closed bug (invalid)

Opened March 13, 2012 01:50AM UTC

Closed March 13, 2012 08:20AM UTC

form elements cann't get

Reported by: mjfttt@163.com Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

just like <textarea id="abc" name="abc"></textarea>,for version1.4 I can get element like jQuery("#abc").attr("type");

but now the version 1.7 I get undefined.

Attachments (0)
Change History (1)

Changed March 13, 2012 08:20AM UTC by sindresorhus comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

Since, "type" is not an attribute, you should be using .prop().

Example: http://jsfiddle.net/mofle/qCzWa/