如何使用Materialize表中的复选框

Luk*_*uke 6 html checkbox materialize

我正在使用Materialise,我正在尝试创建一个包含复选框的表.但是,似乎存在问题.表中包含的复选框似乎不起作用.我不确定这是一个错误,还是我没有做正确的事情:

<form action="#">
  <table>
    <thead>
      <tr>
        <th>Name</th>
        <th>Status</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>My Label</td>
        <td><input type="checkbox" class="filled-in" /><label></label></td>
      </tr>
    </tbody>
  </table>
</form>
Run Code Online (Sandbox Code Playgroud)

如何使用Materialize在表格中包含复选框?

http://jsfiddle.net/qa37un79/

Sam*_*iew 18

您没有标签id的复选框和匹配for属性:

<input type="checkbox" id="myCheckbox" class="filled-in" />
<label for="myCheckbox"></label>
Run Code Online (Sandbox Code Playgroud)

http://jsfiddle.net/xcmsLee9/1/