嘿,我开始使用 ajaxForm 插件,表单语句如下:
<form id="upload" action="upload.php" methor="POST">
<!-- form inputs etc etc -->
</form>
一切正常,但是如果我尝试将操作参数从“upload.php”更改为“upload.php?some_param=value”,它只会调用 upload.php,任何人都知道如何使用 ajaxForm 发送另一个参数?
我通过以下方式查找:
<script type="text/javascript">
$('#upload').live('change',function() {
$(this).ajaxForm({
success: somefunction, // callback function
//i guess here should be another parameter to be sent to the file, but I couldn't find anything interesting on the web
});
});
</script>