0
使用jQuery表單插件時,淡出表單和淡化結果的最佳方式是什麼? (http://jquery.malsup.com/form/#getting-started)提交jQuery表單動畫
<script type="text/javascript">
// prepare the form when the DOM is ready
$(document).ready(function() {
var options = {
target: '#t5',
beforeSubmit: showRequest,
success: showResponse
};
// bind to the form's submit event
$('#t5_booking').submit(function() {
$(this).ajaxSubmit(options);
return false;
});
});
// pre-submit callback
function showRequest(formData, jqForm, options) {
var queryString = $.param(formData);
// alert('About to submit: \n\n' + queryString);
}
// post-submit callback
function showResponse(responseText, statusText, xhr, $form) {
}
</script>
那麼你可以使用jQuery中的fadeIn和fadeOut函數(http://api.jquery.com/fadeIn/)。我建議你把你的'