dimanche 4 septembre 2016

How To Get The Checked Items From A TreeView With Checkboxes

I have this:

<ul id="master">
<li><input type="checkbox" id="users"><label for="users">Users</label>
    <ul>
  <li><input type="checkbox" id="so"><label for="so">so seleciona</label>   </li>
        <li><input type="checkbox" id="Bra"><label for="Bra">Brad</label>
        </li>
        <li><input type="checkbox" id="Share"><label for="Share">Shared</label>
        </li>
    </ul>
</li>
<li><input type="checkbox" id="aa"><label for="aa">outra opção</label></li>
</ul>     

How can I get the values?

I made a demo




Aucun commentaire:

Enregistrer un commentaire