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

  • SEARCH
  • Home
  • 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 5848087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:48:37+00:00 2026-05-22T12:48:37+00:00

First problem is that I do not know how to get the values of

  • 0

First problem is that I do not know how to get the values of SPECIFC checkboxes when they are checked.

I need a function that will get the value of the selected checkboxes by checkbox ID or Name.

This is the code I have so far:

    $("#doStatus").click(function(){
    var Tuitting = $('textarea#tuitting').val();
    var F = $('input#Fb').val(); //checkboxes with ID Fb
    var T = $('input#Tw').val(); //checkboxes with ID Tw
$.get("<?echo $site['url'];?>modules/yobilab/tuitting_core/classes/doStatusBox.php", { tuitting: Tuitting, f: F, t: T });
 window.setTimeout('location.reload()', 1000);
return false;
});

Now the second problem is that both var F and var T may contain MORE than one values in an array..

Obviously when I use the ajax get functions the multiple values for both var F and var T are not
passed at all. What is the problem..?

How do I pass multiple values in an array that will be then runed by the foreach on the doStatusBox.php page?

Please help me.

  • 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-05-22T12:48:38+00:00Added an answer on May 22, 2026 at 12:48 pm

    I’m answering based on an assumption: you need checked checkboxes to pass them via GET method to your doStatusBox.php script.

    However, why would you go trough the trouble of finding which checkbox is checked if you can simply use the serialize() method and let jQuery do the job for you?

    $("#doStatus").click(function()
    {
        var serialized = $("#someFormHere").serialize() 
        // or, if you have your form elements within a div or another element 
        var serialized = $("#elementID :input").serialize();
    
        $.get("<?echo $site['url'];?>modules/yobilab/tuitting_core/classes/doStatusBox.php", serialized);
        window.setTimeout('location.reload()', 1000);
    
        return false;
    });
    

    However, is “#doStatus” a submit button submitting the form or something else? If it submits the form, bind the submit event to the form, not click event to the button submitting it.

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

Sidebar

Related Questions

Problem 2b goes as follows: 2b. For each subject show the first year that
problem euler #5 i found the solution but i don't know why this first
We have a couple of mirrored SQL Server databases. My first problem - the
Here is a problem I've struggled with ever since I first started learning object-oriented
I am building my first ASP.Net MVC based app and have a problem accessing
First, let's get the security considerations out of the way. I'm using simple authentication
First thing to note - I KNOW DELEGATION AND DECORATOR PATTERNS! Second - I
I have some simple code that is comparing two float values to illustrate a
I know that this isn't exactly normalised, but bringing all of the localised data
my aspx (html) code is like below : this is first button (something that

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.