Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7906473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:59:09+00:00 2026-06-03T10:59:09+00:00

I use $.get(… syntax to send my form data with Jquery Ajax. I want

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:59:10+00:00Added an answer on June 3, 2026 at 10:59 am

    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

    Item 11<input type="checkbox" id="chk1" value="11" class="chkItem"  /><br/>
    Item 12<input type="checkbox" id="chk2" value="12" class="chkItem"  /><br/>
    Item 14<input type="checkbox" id="chk4" value="14" class="chkItem"  /><br/>
    <input type="submit" value="Save" id="btnSave" />
    

    And the script is

    $(function(){
       $("#btnSave").click(function(e){
            e.preventDefault();
            var items=$("input[type='checkbox']:checked").map(function () {
                return this.value;
            }).get().join(',');
    
            $.post("yoururl.php?data="+items,function(response){
             //alert(response);
            });        
       });           
    });
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Python I can use get method to get value from an dictionary without
I use jQuery to check username and password in Login form. I use GET
In Java you can send MyClass.class as a param and use get the entire
I am using simple javascript to post a form via ajax.When i use get
I want to know when to use get and set methods(getName,setName ) in my
does anyone know if possible or how to submit a form, use get to
I use a get request to receive a list of a data from a
lets say i use jquery.get to retrive a website to string and how am
Which function can I use to get the content of a plain text file?
I'm trying to use get the white value of a UIColor by the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.