軟件簡介
jQuery.form是一個全面支持表單的jQuery表單插件,支持文件上傳,包含了ajaxForm、ajaxSubmit、formToArray、formSerialize、fieldSerialize、fieldValue、clearForm、clearFields、resetForm等方法。
jQuery.form v2.65 - fixed order in which iframe doc is retrieved from iframe element
使用方法:
使用時你必須依次引入jquery.js、jquery.form.js,并且順序不能顛倒。
示例代碼:
// wait for the DOM to be loaded
$(document).ready(function() {
// bind 'myForm' and provide a simple callback function
$('#myForm').ajaxForm(function() {
alert("Thank you for your comment!");
});
});