I have a voting system that should autoincrement when clicking on a link, basically the structure is as follows:
<ul>
<li>Uno <a href="#">0</a></li>
<li>Dos <a href="#">0</a></li>
<li>Tres <a href="#">0</a></li>
</ul>
When you press the links with zeros, they have to increase one by one, update and save in the database, the latter I do using AJAX.
Both the names and the links are charged from the database. Ideally, if you click on the 'Two' link, the following will appear:
<ul>
<li>Uno <a href="#">0</a></li>
<li>Dos <a href="#">1</a></li>
<li>Tres <a href="#">0</a></li>
</ul>
Any suggestions on how to autoincrement the values? Thanks