//关闭模态框时清空数据
$(function (){
$('#myModalId').on('hidden.bs.modal', function (){
$(':input','#myFormId').not(':button,:submit,:reset').val('').removeAttr('checked').removeAttr('checked');
});
});
//关闭模态框时清空数据
$(function (){
$('#myModalId').on('hidden.bs.modal', function (){
$(':input','#myFormId').not(':button,:submit,:reset').val('').removeAttr('checked').removeAttr('checked');
});
});