I have a simple ink using the </a> tag. which is below:
<a href="create_session.php">
What my question is can I modify the link in order to be able to access a jquery/ajax function which is below:
function removesession()
{
$.ajax({
url: "insertmarks.php",
async: false,
type: "POST"
});
}
Btw is the ajax correct to simply just navigate to a page?
Absolutely!
Give the link an ‘id’ attribute (makes it easier to select)