I have a table that displays data from my database. On each row, there is a button that i made with jquery to cross the row out when clicked. When I refresh the page though, the crossed out style doesnt stay. the jquery style change isnt permanent. it there a way to make this change permanent?
$('table').on('click','.dead',function(){
$(this).parent().siblings().css({textDecoration: 'line-through'});
});
and the php
<?php while($row = $data->fetch_assoc()) { ?>
<tr>
<td><?php echo $row['title']; ?> </td>
<td><?php echo $row['requester']; ?></td>
<td><?php echo $row['reward']; ?></td>
<td><?php echo $row['qual']; ?></td>
<td><?php echo $row['time']; ?></td>
<td><?php echo $row['category']; ?></td>
<td><a href="<?php $row['link']; ?>"><button class="btn btn-mini btn-primary" type="button">Do This Hit</button></a></td>
<td><button class="btn btn-danger btn-mini dead" type="button">Dead</button></td>
</tr>
<?php } ?>