Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Since, "type" is not an attribute, you should be using .prop().
Example: http://jsfiddle.net/mofle/qCzWa/