I have this function that fires when a checkbox form is submitted:
function report_build() {
var checked_count = 0;
var where = ""
$('.peer:checked').each(function (i) {
checked_count++;
var label = $(this).parent().next().html();
where += "'" + label + "', "
});
$('#tabs-1').html(where);
$('#ui-id-6').click();
}
I want to send the where variable to a PHP script to use in the where clause of a select list. What's the easiest way to do that?
Thanks!