可以通过一个$.post
镜像action=''
的表格吗?
我不想制作多个$.post
函数,但action=''
随着用户选择他/她想要在菜单系统中提交的内容而改变。因此,如果URL与action=''
一起动态更改,我只需要一个$.post
函数。
$("#txtrform").submit(function(){
$.post('{*ACTION*#txtrform}', $("#txtrform").serialize(), function(data) {
$("#col3").load("/include/txtrpbox/feed.php");
$('input#txtrinput').val('');
});
return false;
});
您可以使用jQuery的'.attr()'方法。 '$(“#txtrform”)。attr('action');' – 2013-05-05 23:16:39