Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11468 closed bug (invalid)

form elements cann't get

Reported by: mjfttt@… 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.

Change History (1)

comment:1 Changed 8 years ago by sindresorhus

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/

Note: See TracTickets for help on using tickets.