我在这里想念什么?如果我尝试通过 javascript 提交表单,它不起作用。
错误(使用常规 JS 引用和 jQuery 引用提交返回相同的错误)
SCRIPT3: Member not found.
代码:
<a href="#" onclick="refresh_customer_data();return false;">Refresh customer data</a>
<script type="text/javascript">
function refresh_customer_data()
{
$("#post-form").attr("action", "../scripts/refresh-customer-data.asp");
$("#post-form").submit();
}
</script>
<form method="post" action="" id="post-form">
<input type="hidden" name="fromsubmit" value="true" />
<table class="form" style="height:50px;">
<tfoot>
<tr>
<td><span class="required">*</span> Accessible by administrators only</td>
<td><input type="submit" name="submit" value="" style="display:none;" /></td>
</tr>
</tfoot>
</table>
</form>
谢谢!