I am having multiple checkboxes in a grid. Initially some checkboxes are checked and some are unchecked. Then i will change the checkbox selection and i want to save the changed checkbox values in to the database. When i reopen the page i will display the checkboxes checked with the saved values.
The code i have written is:
$(".check").each(function(){
if (element.checked == true) {
alert('checked');
}
});
The code works for checkbox event checked. but i want to also save the values that are changed(I mean checked to uncheked (means delete in the database))
You can use ajax for that purpose.
Hope this helps: