View Full Version : jQuery Ticking Checkboxes with Edit/Delete Options

11-23-2010, 11:17 PM
Both sets of code are from the same file. If a user ticks one of the check boxes for one of the records in the table then selects edit then clicks the Apply button I want it to load the edit form into the content div with it passing the id variable of the selected record so that when it gets to the edit for it will be able to use that id to gather the information on that record from the database. If the user ticks a record in the table then selects delete the clicks the Apply button then I want it to delete the record from the database.

<div class="listActions">
<form action="" method="post">
<label for="actionSelect">With selected items: </label>
<select class="select" name="actionSelect" id="actionSelect">
<button class="button small-button"><strong>Apply</strong></button>

while ( $row = mysqli_fetch_array ( $result, MYSQL_ASSOC ) ) {
echo '
<td><input type=checkbox class=checkbox /></td>
<td>' . $row['menuname'] . '</a></td>
<td><a href=# id="menuitems" title="' . $row['menuname'] . ' Structure Items">Menu Items</a></td>
<td>' . $row['name'] . '</a></td>
<td class=last>' . $row['datecreated'] . '</td>