Hi guys,
I'm new to jquery and ajax and I'm having trouble doing this...
I have a php webpage that builds a table with values from a mysql table. The rows are "messages" and the last field of the row is a boolean field "read" that states if the message has been read or not.
Building the table, I transformed the boolean value to a checkbox to be "checked" or "unchecked", either the value is 1 or 0.
What I want to do is to connect this checkbox to an ajax event, using jquery, that if the checkbox status changes (if it's clicked), then it sends two values (status of the checkbox when the table was first loaded, and the message id) to another php file.
On this other php file I would update the status "read" of that particular message on my mysql table.
Can you give me any lights on how to do this? The php part I can handle but I don't know what jquery/ajax functions to build and how to call them on the html part of the checkbox...
Thanks