我有一个搜索栏,我试图拦截POST,附加"标记:",然后提交,以便有人输入" apple"它在搜索栏中标出:apple
<form method="get" action="/search" id="search-home">
<button type="submit" value="search"></button>
<input type="hidden" name="type" value="product" />
<input type="text" name="q" placeholder="Search" />
</form>
答案 0 :(得分:0)
create