I use $.get(... syntax to send my form data with Jquery Ajax.
I want to know how can I send value of checked checkboxes.
For example I use $("#myinput").val() to send an inputbox value to my php page.
I use $.get(… syntax to send my form data with Jquery Ajax. I want
Share
I dont know how your HTML looks like. Here is a generic solution. You may customize this to your specific needs
Assuming you have some HTML markup like this
And the script is
The above script will take all checked input elements and build a string with the selected items value seperated by comma and send it in the query string. You can read this in your php file and split by comma and read the values.