I've a table with some rows and cells. I can edit inner table content using jquery. But how i can save this edits ? my table:
<table border="1" cellspacing="0">
<tr>
<th>Teams</th>
<th>Points</th>
</tr>
<tr>
<td>Arsenal</td>
<td id="points">35</td>
</tr>
<tr>
<td>Liverpool</td>
<td>33</td>
</tr>
<tr>
<td>Chelsea</td>
<td>33</td>
</tr>
<tr>
<td>Man City</td>
<td>32</td>
</tr>
<tr>
<td>Everton</td>
<td>31</td>
</tr>
</table>
my Jquery code:
<script>
$(document).ready(function () {
var val = $("#points").text();
$("#ss").click(function () {
val++;
$("#points").text(val);
})
})
</script>
<button id="ss">Inc</button>
By clicking on button with "ss" id , the value of td with "points" id increases.
So how i can save and update this increase to currently file (without refresh page)?