Skip to content

[html] 第171天 怎样给radio分组呢? #1292

Open
@haizhilin2013

Description

@haizhilin2013

第171天 怎样给radio分组呢?

Activity

vkboo

vkboo commented on Oct 4, 2019

@vkboo
  • input[type=radio]设置相同的name值,即可实现radio的分组
<div id="wrap">
    <label for="f">
        <input id="f" name="gender" type="radio" value="female">
        <span>女性</span>
    </label>
    |
    <label for="m">
        <input id="m" name="gender" type="radio" value="male">
        <span>男性</span>
    </label>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@vkboo

        Issue actions

          [html] 第171天 怎样给radio分组呢? · Issue #1292 · haizlin/fe-interview