jQuery Form Plugin
jQuery Form Plugin 是一个扩展表单操作的 jQuery 插件,直接文件上传表单,示例代码:
<head>
<script type="text/javascript" src="path/to/jquery.js"></script>
<script type="text/javascript" src="path/to/form.js"></script>
<script type="text/javascript">
// 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!");
});
});
</script>
</head>
这里有一份中文文档:
http://www.aqee.net/docs/jquery.form.plugin/jquery.form.plugin.html
评论