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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:47:53+00:00 2026-05-13T10:47:53+00:00

I have this simple form that is having some CSS issues when the field

  • 0

I have this simple form that is having some CSS issues when the field is invalid.

Check this out:
Simple Form with jQuery and Validate plugin

So all the fields are required. If you just hit the submit button the error fields get a nice yellow background to alert you (along with the invalid text).

The issue is the option buttons. The surrounding div of the radio buttons don’t get the yellow background. But, get this. Type anything but #’s in the “amountOther” field and the yellow highlight shows up. it’s baffling me. why won’t it highlight on the first try?

thoughts?

Thanks!

  • 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-13T10:47:53+00:00Added an answer on May 13, 2026 at 10:47 am

    Move the AmountOther text box into its own <div class="field">

    <div class="field" id="radioButtons">
        <label>Please select a donation amount or enter the amount you would like to donate below.</label>
        <div class="option">
            <input name="Amount" type="radio" id="amount25" value="25" class="radio"  />
            <label for="amount25">$25</label>
        </div>
        <div class="option">
            <input name="Amount" type="radio" id="amount50" value="50" class="radio"  />
            <label for="amount50">$50 <span>most popular amount</span></label>
        </div>
        <div class="option">
            <input name="Amount" type="radio" id="amount100" value="100" class="radio"  />
            <label for="amount100">$100</label>
        </div>
        <div class="option">
            <input name="Amount" type="radio" id="amount250" value="250" class="radio"  />
            <label for="amount250">$250</label>
        </div>
        <div class="option">
            <input name="Amount" type="radio" id="other" value="other" class="radio"  />
            <label for="other">other <span>(minimum $1 donation)</span></label>
        </div>
        <div id="donationErrorMsg"></div>
    </div>
    
    <div class="field">
        <input type="text" class="textbox" name="AmountOther" id="AmountOther" value="" />.00
    </div>
    

    The div that contains the radio buttons is not getting highlighted because that same div contains the AmountOther text field (which is not required if the other radio button is not selected). You have two fields (Amount and AmountOther) in the same div, one is required (Amount) and one is not (AmountOther), there for it is not highlighted.

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

Sidebar

Ask A Question

Stats

  • Questions 493k
  • Answers 493k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should load the library only once and initialize it… May 16, 2026 at 10:40 am
  • Editorial Team
    Editorial Team added an answer It sounds like you just need an open source RDBMS… May 16, 2026 at 10:40 am
  • Editorial Team
    Editorial Team added an answer That image you linked to was for density curves, not… May 16, 2026 at 10:40 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a simple form that has a list (dropdown list generated from a
I have a simple form that I don't want accidentally submitted multiple times. I
I had this simple modal contact form working fine but must have broke it
All I need to do is have a form that does this: User enters
Say I want to have a simple web app that takes some user input,
I'm having issues with internet Explorer. I have a link which duplicates a file
at the moment i'm using this validation plugin: ( http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ ) but when it
I'm not quite sure how to put this, but here goes... The css clip
I have been having the following problem, i think it's probably due to the
I have a class which derived from the TableLayoutPanel. This class makeup the tabel

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.