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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:23:20+00:00 2026-06-18T08:23:20+00:00

I have the following HTML: <div id=tagType1> <input id=tag1 name=tagType1 value=tag1 type=checkbox /> <input

  • 0

I have the following HTML:

<div id="tagType1">
    <input id="tag1" name="tagType1" value="tag1" type="checkbox" />
    <input id="tag2" name="tagType1" value="tag2" type="checkbox" />
    <input id="tag3" name="tagType1" value="tag3" type="checkbox" />
    <input id="tag4" name="tagType1" value="tag4" type="checkbox" />
</div>

<div id="tagType2">
    <input id="tag5" name="tagType2" value="tag5" type="checkbox" />
    <input id="tag6" name="tagType2" value="tag6" type="checkbox" />
    <input id="tag7" name="tagType2" value="tag7" type="checkbox" />
    <input id="tag8" name="tagType2" value="tag8" type="checkbox" />
</div>

And the following jQuery:

 $.get($("#filter form").attr("action") + "/count", function (data, textStatus, jqXHR) {
        $('#workCount span').text(data.toString());
    });

And the following method:

public JsonResult Count(string[] tagType1 = null, string[] tagType2 = null)
{
    // Do something
}

My question is, how do I group the inputs from my two containers within jQuery

  • 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-18T08:23:21+00:00Added an answer on June 18, 2026 at 8:23 am

    Try to use $(“:input”).serializeArray();

    .serializeArray() Returns: Array

    it Encode a set of form elements as an array of names and values.

    http://api.jquery.com/serializeArray/

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

Sidebar

Related Questions

I have the following html code: <div class=tests> <input name=premise id=premise type=radio class=required value=0><span>0</span>
I have following html: <div class=rows> <div class=row><input type=text onchange=javascript:getIndex(this); value= /></div> <div class=row><input
I have the following HTML scenario: <div> <input id=txt0 type=text /><input type=checkbox id=chk0 /></div>
I have the following HTML <div> <label for=username>Username:</label> <input type=text name=username id=username /> <span>some
I have following html: <div class=copy_me_text> <div> <input type=text name=name /> <input type=hidden name=id
I have the following HTML: <div data-name=countrySelectorRoot> <select> <option value=C1>Country 1</option> <option value=C2>Country 2</option>
I have following HTML snippet: <div id=container> <div id=left>Left block</div> <input type=text /> <div
I have the following HTML <div class=myclass value=1> <div> <div class=myclass value=> <a class=popup
I have the following HTML: <div style=30px;> <table width=100%;> <tr> <td> <SELECT name=guidelinks> <OPTION
I have following html snippet: <div class=rsw-pp rsw-pp-widget> <div g:type=AverageStarRating g:secondaryurls=http://maps.google.com/?cid=12948004443906002997 g:decorateusingsecondary=http://maps.google.com/?cid=12948004443906002997 g:groups=maps g:rating_override=2.998000

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.