jQuery提交form表單
- <form id="search_form" name="search_form" method="post">
- <input type="text" name="username" />
- </form>
- <script type="text/javascript">
- $(function() {
- $('#btn').bind('click', function() {
- document.search_form.action = 'admin/queryAll.do?pid=' + pid;
- $('#search_form').submit();
- });
- })
- </script>
歡迎關注本站公眾號,獲取更多信息