I've a list
<ul>
<li><a href="?page=4">one</li> //no 4
<li><a href="?page=7">two</li> //no 7
<li><a href="?page=14">three</li> //no 14
<li><a href="?page=72">four</li> //no 72
<li><a href="?page=201">five</li> //no 201
</ul>
Now I want to use ajax to load the pages instead of the normal page load. So how do I detect which link the user clicked using jQuery. Say something like
$('id of the element clicked').click(function()({
// Load the page using .ajax()
});
In the jQuery code above, how do I get id of the element clicked
??