<script>
$(function() {
$(
"#button"
).click(function() {
$(
"#form :input"
).not(
":button, :submit, :reset, :hidden"
).val(
""
).removeAttr(
"checked"
).remove(
"selected"
);
});
})
</script>
<form id=
"form"
>
<input type=
"radio"
checked=
"checked"
>
<input type=
"checkbox"
checked=
"checked"
>
<select>
<option>option1</option>
<option selected=
"selected"
>option2</option>
</select>
<input type=
"text"
value=
"text"
>
<input type=
"hidden"
value=
"hidden"
>
<input type=
"button"
value=
"button"
>
<input type=
"reset"
value=
"reset"
>
<input type=
"submit"
value=
"submit"
>
</form>
<button id=
"button"
>真正清空</button>