1
我有一個搜索欄,我試圖攔截POST,追加「標籤:」,然後提交它,所以如果有人在搜索欄中輸入「apple」,它會出現標籤:蘋果提交HTML文章特定值
<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>
您可以在這裏您將使用'apple' – void
你是什麼意思去做呢? –
你可以嘗試使用jQuery嗎? – vel