Skip to main content
1 of 4
Paras Sood
  • 2.6k
  • 1
  • 15
  • 23

Use this to determine if the checkbox is checked and store it in a variable as a bool value.

After that for postBody you could use:

"mypostdata="+$('my_value').value +"&isChecked="+isChecked;

Where isChecked is the js variable you stored the bool value in and it will be passed to the post param: isChecked

Paras Sood
  • 2.6k
  • 1
  • 15
  • 23