I was under the assumption that if I disabled a div, all content got disabled too.
However, the content is grayed but I can still interact with it.
Is there a way to do that? (disable a div and get all content disabled also)
I was under the assumption that if I disabled a div, all content got disabled too.
However, the content is grayed but I can still interact with it.
Is there a way to do that? (disable a div and get all content disabled also)
Many of the above answers only work on form elements. A simple way to disable any DIV including its contents is to just disable mouse interaction. For example:
css
similar to cletu's solution, but i got an error using that solution, this is the workaround:
works fine on me
If you wanted to keep the semantics of disabled as follows
you could add the following CSS
the benefit here is that you're not working with classes on the div that you want to work with
I thought I'd chip in a couple of notes.
look at my selector
the
fieldsetUserInfo
is div contains all inputs I want to disabled or Enablehope this helps you