Posted in Javascript onApril 18, 2013
<form name="form1222" action="list.aspx" method="post"> <input type="hidden" id="mid" name="mid" value=""> </form> <script> function forwardTo(rid){ document.getElementById('mid').value=rid; //赋值给隐藏域字段 //alert(document.getElementById('mid').value); document.form1222.submit(); //提交表单 } </script> <a href="#" onclick="forwardTo(55)">jsfdh</a> <a href="#" onclick="forwardTo(080110)">校园招聘</a>
JS隐藏参数post传值实例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@