You could try this (untested): var labels = $('input:checked + label').map(function() { return $(this).text(); });
That should give you an array with the label's text. --Klaus On 23 Okt., 22:47, shapper <[EMAIL PROTECTED]> wrote: > 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