Bug Tracker

Modify

Ticket #11468 (closed bug: invalid)

Opened 15 months ago

Last modified 15 months ago

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

comment:1 Changed 15 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to attributes

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.