Don't have .val() return selected-but-disabled options, or selected options inside a disabled optgroup. Doesn't change the .val() returned for a disabled select. Fixes #3240, adapted from Nathan Hammond's patch there.
This commit is contained in:
parent
700ff05af0
commit
2c4b20809e
6 changed files with 31 additions and 12 deletions
|
@ -255,7 +255,7 @@ test("bind(), iframes", function() {
|
|||
});
|
||||
|
||||
test("bind(), trigger change on select", function() {
|
||||
expect(3);
|
||||
expect(4);
|
||||
var counter = 0;
|
||||
function selectOnChange(event) {
|
||||
equals( event.data, counter++, "Event.data is not a global event object" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue