Combine the support tests for radioValue and appendChecked
This commit is contained in:
parent
16312c6b06
commit
2942be780f
2 changed files with 9 additions and 10 deletions
|
@ -363,6 +363,7 @@ jQuery.extend({
|
|||
} else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
|
||||
// Setting the type on a radio button after the value resets the value in IE6-9
|
||||
// Reset value to it's default in case type is set after value
|
||||
// This is for element creation
|
||||
var val = elem.getAttribute("value");
|
||||
elem.setAttribute( "type", value );
|
||||
if ( val ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue