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 6770195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:17:00+00:00 2026-05-26T15:17:00+00:00

I am trying to parse through a typical form using jquery. I want to

  • 0

I am trying to parse through a typical form using jquery. I want to obtain all details about the various fields in the form- viz field name, field type (eg radio/checkbox/list)…

How do I determine if a field allows multiple values to be selected? (eg in check box or list box)?

If this cannot be done using jquery, then can it be done using pure javascript? I already have with me a ref to the element for which this (whether multiple values are allowed or not) has to be determined…

  • 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-26T15:17:00+00:00Added an answer on May 26, 2026 at 3:17 pm

    Surround your control with some <div> as:

    <div id="testCheck">
                    <input type="checkbox" checked="checked" value="1" />
                    <input type="checkbox" checked="checked" value="2" />
                    <input type="checkbox" checked="checked" value="3" />
                    <input type="checkbox" checked="checked" value="4" />
                    <input type="checkbox" checked="checked" value="5" />
                    <input type="checkbox" checked="checked" value="6" />
                    <input type="checkbox" checked="checked" value="7" />
                    <input type="checkbox" checked="checked" value="8" />
        </div>
    

    and check the selected or unselected elements using follwwing jquery code snippet. .size() will return the no of checked item and you can get the value of selected items by .val().

    //Write your code when Document is loaded or some element click

     $(document).ready(function() {
                    $("#testChk").click(function() {
                        alert($("#testCheck :checked").size());
                        //function to print the value of each checked checkboxes
                        $("#testCheck :checked").each(function() {
                            alert("value = " + $(this).val());   
                    });
    

    for more help follow these links:

    How can I know which radio button is selected via jQuery?

    have a look on jquery selector. you should watch bottom itms :password, :reset etc that you need to use.
    http://api.jquery.com/category/selectors/

    http://jquery-howto.blogspot.com/2008/12/how-to-check-if-checkbox-is-checked.html

    Handling Checkboxes, Radio Buttons and Select Options in jQuery

    Hope this help you little bit…

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

Sidebar

Related Questions

I am trying to parse through all elements in a single radio button (or
I'm trying to parse through a string with regular expressions (.NET) and find all
I'm trying to parse through and obtain my (my personal account not my app)
I am trying to parse through a document using a DOM Parser in java.
I'm trying to parse CSV files uploaded by the user through PHP, but it's
I'm trying to fetch and parse an XML-file through JavaScript. I don't control the
I'm trying handle bad json data when parsed through json_decode(). I'm using the following
Im trying to parse the string located in /proc/stat in a linux filesystem using
I'm trying to parse an INI file using C++. Any tips on what is
I'm trying to parse through fixed-width formatted file extracting x,y values of points from

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.