Okay, I'm not sure how to describe what i want to do concisely. So, take the following pseudo-html:
<input type=checkbox id=chk1 myatr=1 />
<input type=checkbox id=chk2 myatr=1 />
<input type=checkbox id=chk3 myatr=2 />
<input type=checkbox id=chk4 myatr=1 />
<input type=checkbox id=chk5 myatr=2 />
<input type=checkbox id=chk6 myatr=3 />
What i want to do is select all the checkboxes where they are the first occurrence of their respective value for "myatr". So i want to take something like:
$('input [type=checkbox]')
and extend it somehow to only get the items with ids chk1, chk3 and chk6, as they are the first instances of their values of myatr (1, 2 and 3 respectively).
Something like:
$('input [type=checkbox]').FirstForEach('myatr')
Is this possible somehow?