| 861 | // Support: IE >= 9 |
| 862 | |
| 863 | function fixInput(src, dest) { |
| 864 | var nodeName = dest.nodeName.toLowerCase(); |
| 865 | |
| 866 | // Fails to persist the checked state of a cloned checkbox or radio button. |
| 867 | if (nodeName === "input" && manipulation_rcheckableType.test(src.type)) { |
| 868 | dest.checked = src.checked; |
| 869 | |
| 870 | // Fails to return the selected option to the default selected state when cloning options |
| 871 | } else if (nodeName === "input" || nodeName === "textarea") { |
| 872 | dest.defaultValue = src.defaultValue; |
| 873 | } |
| 874 | } |
| 875 | jQuery.fn.extend({ |
| 876 | wrapAll: function(html) { |
| 877 | var wrap; |