Hello,

This might be a tricky one ... I have been looking into JQuery docs
but I can't figure how to make this.

I have the following:

<input type="checkbox" name="Roles" id="Admin" value="Admin" />
<label for="Admin">Administrator</label>

<input type="checkbox" name="Roles" id="Coll" value="Admin" />
<label for="Coll">Collaborator</label>

How can I get, NOT the values, of all checked boxes BUT the label
inner text of all checked boxes?

Example:

If Coll checkbox is checked I would get:
Collaborator

If both checkboxes are checked I would get:
Collaborator, Administrator

Could someone, please, help me?

Thank You,
Miguel

Reply via email to