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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:23:47+00:00 2026-05-23T08:23:47+00:00

I am trying to bassistance plugin for my form validation, now my form consists

  • 0

I am trying to bassistance plugin for my form validation, now my form consists of several radio button groups, some of them are “required”.

Now,

  1. how do I make sure that all those radio groups did recieve a value?
  2. Once the user have propely set them, where and how do I check the values of those radio buttons before proceeding with submission?
  • 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-23T08:23:48+00:00Added an answer on May 23, 2026 at 8:23 am

    Are you asking how you can use the plugin? It’s pretty well-documented, but anyway these snippets should assist. Here I take a simple form with two lots of radio-button groups, validate them using the plugin. The main things to note in the validation code are that we have two handler callbacks (for ‘invalid’ and ‘success’ states) plus a set of validation rules to apply.

    First, the example form:

    <form id="your-form">
        <fieldset>
            <p>
                <label for="group_one">Select an option (required)</label>
                <input type="radio" name="group_one" id="opt1-1">Option 1
                <input type="radio" name="group_one" id="opt1-2">Option 2
                <input type="radio" name="group_one" id="opt1-3">Option 3
            </p>
            <p>
                <label for="group_two">Select an option here too (required)</label>
                <input type="radio" name="group_two" id="opt2-1">Option 1
                <input type="radio" name="group_two" id="opt2-2">Option 2
                <input type="radio" name="group_two" id="opt2-3">Option 3
            </p>
    
            <p><input name="submit" type="submit" id="submit" value="Save" /></p>
        </fieldset>
    </form>
    

    … and second, the validation code:

    $(document).ready(function(){
        $("#your-form").validate({
            invalidHandler: function(form, validator){
                var errors = validator.numberOfInvalids();
                var message = (errors == 1) ? "One of your groups won't validate." : "Neither of your groups will validate.";
                alert(message);
            },
            submitHandler: function(){
                alert("Everything's OK, both radio button groups are set.");
                $('#your-form').ajaxSubmit()
            },
            rules: {group_one: {required: true}, group_two: {required: true}}
        });
    });
    

    Does that help?

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

Sidebar

Related Questions

I'm using the validate plugin from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ What i'm trying to find is a
I'm trying to add some validation to some form fields in a jQuery Mobile
I'm trying to use the jQuery validation plugin (from here --> http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) to
I am trying to use this jQuery plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation so I can validate a
I am using the jquery validation plugin located here: http://bassistance.de/2011/05/14/release-validation-plugin-1-8-1/ And I'm trying to
I'm trying to implement a validation script (bassistance) with a jquery form wizard (
I'm trying to use this tooltip plugin: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ . I can't seem to get
Im trying to display error messages for the jquery validator plugin(the bassistance one) as
I'm currently using the jquery bassistance validator on my form. I was trying to
I am trying to create a custom button (plugin) on the the CKEditor toolbar

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.