mirror of
https://github.com/jquery/jquery.git
synced 2026-02-05 23:55:22 -05:00
Follow-up for 22a4e5bd0a, fix .checkOn, add support tests. Cloes gh-1199.
This commit is contained in:
@@ -13,7 +13,7 @@ jQuery.support = (function( support ) {
|
||||
input.type = "checkbox";
|
||||
|
||||
// Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
|
||||
support.checkOn = input.value === "";
|
||||
support.checkOn = input.value !== "";
|
||||
|
||||
// Must access the parent to make an option select properly
|
||||
// Support: IE9, IE10
|
||||
|
||||
Reference in New Issue
Block a user