Landing pull request [337](https://github.com/jquery/jquery/pull/337). Value of radio inputs resets when type is set after the value in all IEs. Fixes #8570 ([bug](http://bugs.jquery.com/ticket/8570)).
This commit is contained in:
parent
dbe966aa57
commit
3ac9eb7ce3
3 changed files with 20 additions and 3 deletions
|
@ -115,6 +115,11 @@ jQuery.support = (function() {
|
|||
div.cloneNode( true ).fireEvent( "onclick" );
|
||||
}
|
||||
|
||||
input = document.createElement("input");
|
||||
input.value = "t";
|
||||
input.setAttribute("type", "radio");
|
||||
support.radioValue = input.value === "t";
|
||||
|
||||
div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
|
||||
|
||||
fragment = document.createDocumentFragment();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue