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

2010-01-09 Thread Peter Edwards
You could use the title attribute rather than your non-standard txt attribute, and achieve the same thing using: $(document).ready(function(){ $("#tryme").click( function(){ var checkedGenres = []; $("input[rel='genre']:checked").each(function(){ checkedGenres.pu

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

2010-01-09 Thread swfobject_fan
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 $(document).ready(function(){ $("#tryme").click( function(){ va