Hi i want to do the update function where each staff balance is listed in a row of the table. When the form is submit, it will only submit the specific row. Something like this.
I am newbie to jquery, can someone give me a direction?
<table id="rounded-corner">
<thead>
<tr>
<th scope="col" class="rounded-company">Name</th>
<th scope="col" class="rounded">Position</th>
<th scope="col" class="rounded">Annual Leave Balance</th>
<th scope="col" class="rounded">Sick Leave Balance</th>
<th scope="col" class="rounded">Action</th>
</tr>
</thead>
<tbody>
<?php foreach($list as $value) {?>
<tr id='<?php echo $value['IDSTAFFTABLE']; ?>'>
<td><?php echo $value['FIRSTNAME']; ?> <?php echo $value['LASTNAME']; ?></td>
<td><?php echo $value['POSITIONNAME']; ?></td>
<td><input type="text" name="annualleave" class="annualleave" value="<?php echo $value['ANNUALLEAVE']; ?>"/></td>
<td><input type="text" name="sickleave" class="sickleave" value="<?php echo $value['SICKLEAVE']; ?>"/></td>
<td><input type="submit" name="submit" class="submit" value="Submit" /></td>
</tr>
<?php } ?>
</tbody>