這看起來像一個非常基本的問題,我已經創建了幾十個表單,但我無法看到問題在這裏。默認HTML拒絕檢查單選按鈕嗎?
我有這兩個單選按鈕:
<input type='radio' class='free atype' value='0' name='dutch' checked='checked'/> Free<br/>
<input type='radio' class='paid atype' value='1' name='dutch' /> Paid
顯然,第一個應該被默認選中。
但是,當我檢查第二個,然後刷新頁面,第二個無線電保持檢查。我知道這是錯誤的行爲,但我不能爲我的生活看到我做錯了什麼。
我正在試着這個在Firefox上。
只是一個頭,自動完成不是一個標準屬性:http://stackoverflow.com/questions/582244/is-there-a-w3c-valid-way-to-disable-autocomplete-in-a-html -form ...這只是一個IE/Firefox的東西 – PlantTheIdea 2013-02-21 18:28:16