How to call a function in controller when checkbox is checked

I have a checkbox to show if a record is reviewed.
I have written the function to update the DB in the controller class using ajax.
How to call this function when checkbox is checked,Should this be called in onclick event?
~~~~
If checkbox is unchecked ,the reviewed field in database should be 0 and If checkbox is checked ,the reviewed field in database should be 1