Bug Tracker

Modify

Ticket #11228 (closed bug: invalid)

Opened 16 months ago

Last modified 16 months ago

Type for Select element return Undefined

Reported by: dmitryv@… Owned by:
Priority: low Milestone: None
Component: core Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

<select id='testselect'> ...

$('#testselect').type return 'undefined' but must be select, or select-one, or select-multiple  http://dev.w3.org/html5/spec/the-select-element.html#dom-select-type

document.getElementById('testselect').type return correct

Change History

comment:1 Changed 16 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 core

Thanks for taking the time to contribute to the jQuery project! In the future, please include a testcase on jsfiddle.

The jQuery object does not include DOM element properties. You can easily access those using:

$('#testselect')[0].type

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.