I have a list of buttons ( <li>
):
<li id="1">link 1</li>
<li id="2">link 2</li>
<li id="3">link 3</li>
<li id="4">link 4</li>
<li id="5">link 5</li>
When the user clicks on a link he executes an Ajax and makes a request in a PHP file, when he clicks on another, he makes the same request and so successively.
I would like to know how to do when the user clicks on the link and only on the first click to make the request and if he clicks again,
PS: When it clicks on any links , it executes the html()
event that saves the results to a div that is next to the% sup>