Basically what I need to do is run through a series of checkbox if it is checked I need to submit its value using ajax. Now I can't seem to find a way to run through each checkbox one at a time. Here's the code on my page.
$(document).ready(function(){
$('#submit').click(function(){
});
});
<?php
/**
* Include vB core.
*/
require_once('./global.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumlist.php');
/**
* Grab the divisions from the database.
*/
$query = $db->query_read("SELECT division FROM rollcall_divisions");
while($array = $db->fetch_array($query)){
echo "<input type='checkbox' value=".$array[division].">".$array[division]."<br>";
}
?>
<input type="submit" id="submit">