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:
Dave Methvin 2010-09-24 17:26:22 -04:00 committed by jeresig
parent 700ff05af0
commit 2c4b20809e
6 changed files with 31 additions and 12 deletions

View file

@ -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" );