jquery通过切换select实现input的清空 $obj = $('#obj'); $obj.after($obj.clone().val("")); $obj.remove(); $('#obj').attr('readonly', true);