I have a list, populated from rows in a MySQL database and I want to flag those rows in the database when the link is clicked, using jQuery .click and .ajax by triggers a PHP script and passing in the the database primary key ID.
I have this jQuery code so far:
$(document).ready(function() {
$("#clickme").click(function() {
$.post("removeDNFromBulk.php");
);
});
But I need to pass in an ID to removeDNFromBulk.php, either as POST or GET, either suits.
I have this HTML to trigger the jQuery code
<a id="clickme" href="javascript:void(0);">click me</a>
Obviously I'm not passing in any ID to the jQuery but that's that part I can't get my head around. How can that be done?