[jQuery] Getting all checked check boxes with a certain id
I'm trying to get the values of all checked check boxes in a certain
section of a page. Each of the check boxes has the same id, I could
just as easily make it a class or whatnot.
I'm using something like:
var valArray = $('#' + id + ' input:checkbox').serializeArray();
Although I know the above isn't right, what is the proper query to do
this?
Thanks in advance.