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

html radio单选框默认选中

WBOY
Release: 2016-06-01 09:53:26
Original
8905 people have browsed it

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

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

 

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template