搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Checkboxes don't display properly <input type='checkbox' 'checked'> in 4.0.1 when they are fine for same page in 3.6.17

  • 2 回覆
  • 2 有這個問題
  • 23 次檢視
  • 最近回覆由 ric1950

more options

Checkboxes don't display properly checked <input type='checkbox' 'checked'> in 4.0.1 when they are fine for same page in 3.6.17

Checkboxes don't display properly checked <input type='checkbox' 'checked'> in 4.0.1 when they are fine for same page in 3.6.17

被選擇的解決方法

Perhaps you could try using checked instead of 'checked'.

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

選擇的解決方法

Perhaps you could try using checked instead of 'checked'.

more options

Thanks heaps.

It seems that the correct usage is checked='checked' but checked

works while
'checked' 

doesn't. Same applies for 'selected' for radio buttons and drop down lists