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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:18:00+00:00 2026-05-15T01:18:00+00:00

I have a group of checkboxes that all have the same name. They all

  • 0

I have a group of checkboxes that all have the same name. They all have different values. They are just part of a form. They do not make up the entire form. I want the checkboxes to display their error AFTER the last checkbox of that group.

is it possible to do something like this in jQuery?

$("#myform").validate({
  errorPlacement: function(error, element) {
     var checkboxes = $("#checkboxes");
     if(checkboxes.contains(element))
        label.insertAfter(checkboxes[checkboxes.length-1]);
   },
   debug:true
 })

How would I go about doing this?

Thanks,

Ian McCullough

  • 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-15T01:18:01+00:00Added an answer on May 15, 2026 at 1:18 am

    I realize that this is an older question but, I needed similar functionality on a form and solved it.

    Using jQuery 1.4.2

    So given the following form.

    <form id="checkForm" method="get" action="">
    <ul id="checkboxes">
        <li><input type="checkbox" name="checkOne" id="checkOne" value="1" /></li>
        <li><input type="checkbox" name="checkTwo" id="checkTwo" value="2" /></li>
        <li><input type="checkbox" name="checkThree" id="checkThree" value="3" /></li>
    </ul>
    <input class="submit" type="submit" value="Submit"/>
    

    Then you can do the following

    $("#checkForm").validate({
        rules: {
            checkOne: "required",
            checkTwo: "required",
            checkThree: "required"
        },
        errorPlacement: function(error, element) {
            if ($("#checkboxes").has(element).size() > 0) {
                error.insertAfter($("#checkboxes input:checkbox:last"));
            } else {
                error.insertAfter(element);
            }
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a group of checkboxes that all represent different selections of the same
I have a form that has a group of 13 checkboxes that together make
I have a group of checkboxes using this syntax: echo <form name=\myform\ method=\POST\ action=\csvbuilder.php\>;
I have the following php array that gets all values from a form full
I have a form that has multiple sets of checkboxes that initially load all
I have group of checkboxes nearly equals to 100 all are with name checkbox1...checkbox1oo.
I have 4 group of checkboxes, in which i am grouping all this 4
I have a group of WPF CheckBoxes that have a Checked event handler that
I have a group of checkboxes that I'm trying to pass through POST via
I have a form with X number of groups of checkboxes with price values.

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.