我的網站就像一個搜索引擎,有兩種搜索類型。類型1類型2. 我只是不知道如何做到這一點,當有人來我的網站默認選中類型爲類型1,如果它選擇類型2,然後保持類型2訪問者即使頁面刷新。 我需要的是像這裏的樣品。單選按鈕切換檢查php
JS
$(function() {
$("#radio").buttonset();
});
HTML
<form>
<div id="radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
</form>
我希望能夠切換檢查= 「檢查」從無線電到另一個或這樣的事情,我認爲。真的不知道。但我認爲它必須做一些與PHP或JavaScript的東西。
所以我想我將不得不打開另一個帖子關於如何設置這個cookie,因爲我從來沒有與他們合作過 –