form表单清空地址提交

<form action='/e/sch/index.php' method="GET" name="search_news" id="search_news" class="flexbox">
<input name="keyboard" type="text" id="keyboard" class="put" />
<input type="submit" name="submit"  value="search" />
</form>

<script>
$('form[id=search_news]').attr('action','[!--news.url--]e/sch/index.php');
</script>

posted @ 2017-08-30 09:50  WUYUIN  阅读(282)  评论(0)    收藏  举报