Changes between Version 4 and Version 5 of Ticket #22693, comment 17
- Timestamp:
- 12/04/2012 04:58:17 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22693, comment 17
v4 v5 1 1 The 'selected' attribute, when present, specifies that an option should be pre-selected when the page loads. 2 2 3 What we do is to simulate the 'selected' property using this attribute (which is not it 's purpose).3 What we do is to simulate the 'selected' property using this attribute (which is not its purpose). 4 4 5 5 A better approach would be to handle dropdowns using [http://api.jquery.com/select/ .select()] to trigger the event on the required element and [http://api.jquery.com/selected-selector/ :selected] selector to match the selected element as suggested in attachment:22693.5.diff. This way it's also possible to let the default value set to 'medium'.