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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:21:01+00:00 2026-05-29T06:21:01+00:00

not sure what is wrong with this jquery code: http://jsfiddle.net/aCABM/ I want to to

  • 0

not sure what is wrong with this jquery code: http://jsfiddle.net/aCABM/

I want to to grey out the dropdown menu when ‘yes’ is selected. When no is selected it can be selected if the user so wishes.

  • 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-29T06:21:02+00:00Added an answer on May 29, 2026 at 6:21 am

    Select the elements by radio button name there is no need to select them individually by there ids and use prop instead of attr since you are manipulating its disabled property. Try this.

    $(function(){
        $("input[name='discount']").click(function() {
            $("#discountselection").prop("disabled", this.value == 'Yes');
        });
    });
    

    Demo

    In your fiddle there were few issues.

    1. Missed to include jQuery library
    2. You cannot just begin your markup with td, it should be enclosed with table and tr element.
    3. In the Js window you just have to put your js, no need to have script tags.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure what's going wrong here. This is the page: http://www.utexas.edu/ssw/cswr/projects/project-list/ The first
Not sure what I'm doing wrong. I'm using the jQuery Validation plugin. This is
This is kind of crazy and I am not sure what's wrong. I want
I got this error message and I'm not quite sure whats wrong: Exception in
Not sure if this is intended behavior or a bug or a wrong function
I know this probably really simple but Im not sure what im doing wrong...
I'm mot sure if I'm doing this wrong or not I don't know if
I am trying to figure out what is wrong with this code, I need
I am not very sure with the use of this [current context] in jquery.What
Website test page: http://www.lantiis.com/indexold.html jsFiddle: http://jsfiddle.net/Guhb4/7/ I received help with the jQuery and it

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.