Home  >  Article  >  Web Front-end  >  html radio单选框默认选中

html radio单选框默认选中

WBOY
WBOYOriginal
2016-06-01 09:53:268855browse

设置html radio 默认选中的方法:添加checked 属性,设置为 true,如下代码所示: 

<code class="language-html"><input checked type="radio" name="radiobutton" value="radiobutton">  </code>

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn