.not() not working as expected
I have a function that looks at a table and gets tr based on checkbox being checked. I then want to read the text in td's for each row, but skip the checkbox, which I added the class "checkbox" to something like this:
- addToPlan : function(){
var activeSites = '';
$('tr').has(':checkbox:checked').each(function(){
$(this).find('td').not($('.checkbox')).each(function(){
activeSites +='"';
activeSites += $(this).text()
activeSites += '",';
});
activeSites +='\r';
});
I have tried this a couple of ways, but can't seem to make it work. What am I missing? Thanks for any help.