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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:02:32+00:00 2026-06-02T12:02:32+00:00

I have a problem with my address data. So either you enter a new

  • 0

I have a problem with my address data. So either you enter a new address (all of the fields are inputfields except gender,selection, it’s a radiobutton), or you select an address from a given list, so if you want the one from the list(selected with a radiobutton -> input[@name='select_address']), all the inputfields are not required anymore …

rules: {
delivery_gender: 
        {required:"input[@name='select_address'].not(':checked')"}

So the field gender should only be required if the input select-field (input[@name='select_address) is not checked. What am I doing wrong?

I’ve also tried another way:

$('input:radio[name=select_address]').click(function() {
    delivery_gender.rules('remove');

but it won’t work either. Any ideas?

The problem only comes up with the radiobuttons because for the input-fields i just removed the class:

$('input.delivery').removeClass('required error');
  • 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-02T12:02:35+00:00Added an answer on June 2, 2026 at 12:02 pm

    Try using a dependancy callback :

    required: function(element) {
        return $("input[name=select_adddress]:checked").val() == "custom";
    }
    

    This checks if the value of the checked radio button in the group select_address is equal to custom – if it is then the gender field is required.

    working example here – in the example you need to select custom to make the gender field required.

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

Sidebar

Related Questions

I have a problem, I have table 'ip_address' with 4 fields: - id_ip -
So I have this problem where the output prints the address of my pointer,
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
i have problem with autorotate on iphone i set up in all classes -
i have problem to correctly bind data to WPF Chart. When i'm setting ItemsSource
I have problem to find the best way how isolate users data stored in
I have address data stored in an sql server 2000 database, and I need
I have a problem accessing to data, described in the title of the question.
I have one problem regarding retriving data from database. I have created one database
I have problem with fancybox. I want to write a function that will run

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.