[jQuery] Generating a CSV of values from a bunch of Checkboxes with same id

[jQuery] Generating a CSV of values from a bunch of Checkboxes with same id

Hi,
I'm using this piece of code to find a set of selected check boxes
that are selected abd build a comma separated list from their values
'txt' custom attribute
. Is this a jQuery standard method?
e.g
<input type="checkbox" id="chkGenre" rel="genre" value="12"
txt="Rock" /> <br />
<input type="checkbox" id="chkGenre rel="genre" value="13" txt="Jazz" /