Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-bordered table-hover table-responsive">
- <?php foreach($fetch2 as $l2){?>
- <tr id="<?php echo $l2['cid'] ?>">
- <td><?php echo $l2['cname'] ?></td><td><input type="number" class="form-control" name="<?php echo $l2['cid'] ?>" id="<?php echo $l2['cid'] ?>" value="" /></td>
- </tr>
- <?php }?>
- </table>
- for (int i=0; i<=33; i++) //because all inputs have id as numbers
- {
- var id = $("#"+i).attr('id') //to get the id of all inputs
- var idValue = $("#"+i).val();
- //Send these value to php to update the database.
- //Ajax...
- }
Add Comment
Please, Sign In to add comment