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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:28:46+00:00 2026-05-28T13:28:46+00:00

I have statement $(#myDiv).attr(disabled,disabled); I thought that once I disable parent container, all elements

  • 0

I have statement $("#myDiv").attr("disabled","disabled");
I thought that once I disable “parent” container, all elements inside of this become disabled. What I see actually, that text-box looks like disabled and “delete” not works within, but I can type there. check-box that inside of the same div, really looks disabled and I can’t check/uncheck it. I’m not sure for 100%, but I think that I already used disabling that way and it worked as I expected (text-box not typeble). So I want to know if I need explicitly set disabled for textboxes or maybe some other CSS breaks what I’m expecting.

UPDATE:
I know how to set disable explicitly for elements that i need, I just not want tot do it and what I’m asking that if it the only way to disable it, or textbox may work exactly as checkbox (without explicitly disabling it) and just some CSS breaks this behavior.

  • 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-28T13:28:47+00:00Added an answer on May 28, 2026 at 1:28 pm

    As far as im aware doing that is not cross browser friendly nor valid markup. Best option would be to do something like

    $('#myDiv').find('input,textarea,select').attr("disabled", true);
    

    That should find all form elements within the div and apply teh disabled flag directly

    Edit: or even just

    $('input,textarea,select', '#myDiv').attr("disabled", true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have LINQ statement that looks like this: return ( from c in customers
I have a statement similar to this that I need to run in Linq.
I have this statement: String cap = Regex.Replace(winCaption, @[^\w\.@-], ); that transforms Hello |
I have a statement that looks like this: <asp:CheckBox ID=CheckBoxProcess Checked='<%#Eval(processedField) %>' OnCheckedChanged=CheckBoxProcess_CheckedChanged runat=server
I have a statement like this: if(window.location.hash != '' && window.location.hash != '#all' &&
I have a statement that looks something like this if not @user.verified? or @user.credit_card.expired?
I have this statement: SELECT passwdlib.piv_insertPasswd(:A1, :A2) FROM DUAL I am guessing that piv_insertPasswd
I have this statement that im trying to figure out how to use in
I have a statement that looks something like this: MERGE INTO someTable st USING
i have sql statement like this SELECT DISTINCT results_sp_08.material_number FROM results_sp_08 INNER JOIN courses

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.