change event firing for disabled options in select
|Reported by:||Topolopolopolov||Owned by:||brandon|
|Keywords:||change disabled option select||Cc:||miketaylr|
The change event gets triggered for clicks on options within a select that have the 'disabled' attribute in some browsers. This only seems to happen when the size attribute of the select is greater than 1.
Safari and Chrome both fire the change event and return null for the val() of the select (even if a value attribute is supplied for the disabled option).
Opera fires the event and returns the value attribute of the previously selected option.
Firefox is handling it correctly, I would assume, and the change event doesn't fire on a click of the disabled option.
See attached file for example.