title: How to write a function for checkbox change event on save button click
body: <p>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. </p>
  
  <p>The code i have written is:</p>
  
  <pre><code>    $(".check").each(function(){ 
  
             if (element.checked == true) {
  
                  alert('checked');
  
              }
  
         });
  </code></pre>
  
  <p>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))</p>