Questions tagged [disabled-control]

322 questions
179
votes
6 answers

Disable submit button when form invalid with AngularJS

I have my form like this:
As you may see, the button is disabled if the input is empty but it…
ali
  • 10,927
  • 20
  • 89
  • 138
64
votes
7 answers

asp:TextBox ReadOnly=true or Enabled=false?

What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control?
Alf
  • 1,518
  • 3
  • 17
  • 21
57
votes
13 answers

Disable TabLayout

I'm using the new class provided by the design library : TabLayout. And I want in specific cases that the one I'm using can't change tab anymore. I manage to disable swipe on its viewpager but I can't figure out how to disable the change of page by…
MHogge
  • 5,408
  • 15
  • 61
  • 104
54
votes
6 answers

Explicitly set disabled="false" in the HTML does not work

I would like to explicitly set a button as enabled in the html file. The reason is that my code later on toggles the button to disabled and if the code crashes or so I might see the button disabled. I can disable the button with…
aless80
  • 3,122
  • 3
  • 34
  • 53
34
votes
9 answers

Clicking a disabled input or button

Is it possible to click on a disabled button and provide some feedback to the user? HTML: and JavaScript: $('input').mousedown(function(event) { alert('CLICKED'); }); The above code is not working…
e1761587
  • 343
  • 1
  • 3
  • 4
25
votes
9 answers

Disable/Enable Submit Button until all forms have been filled

I want my form submit button to be disabled/enabled depending on if the form is completely filled. When the inputs are filled, the disabled button changes to enabled. That works great. But I would like it to disable the button when an input gets…
user1912654
  • 253
  • 1
  • 3
  • 5
23
votes
10 answers

Have a disabled onClick?

I want to be able to respond to a click event on a disabled switch, is that possible? I have a switch that is not enabled until the user fills in some information, so it looks like this: I want to prompt the user to fill out the information if they…
Ruchir Baronia
  • 7,406
  • 5
  • 48
  • 83
22
votes
3 answers

Select all not disabled input buttons

Can I in some way select all input submit elements that are not disabled? I can easily find all the disabled ones with: http://api.jquery.com/disabled-selector/ $("input.saveitembtn:disabled") but is there something…
Steeven
  • 4,057
  • 8
  • 38
  • 68
14
votes
2 answers

Text color of disabled control - how to change it

During the creation of my awesome Matching Game ;) I found a problem that is completely out of reach. When the player chooses two labels with symbols on them I want to lock all the other labels for 4 seconds. But when I do that, the forecolor of…
Mqati
  • 155
  • 1
  • 1
  • 5
12
votes
4 answers

AngularJS ng-disabled not working with list items

I am facing a problem with disabling a item in the list.
  • list1
  • list2
  • list3
It does not work…
Hmahwish
  • 2,222
  • 8
  • 26
  • 45
11
votes
2 answers

Change Button Background when is not enabled

I need to change my Button background (as SolidColorBrush for example) only when it is not enabled (IsEnabled == false). How can I do? Have I to modify the Button Style using the XAML or can I do this work programmatically? What is the correct XAML…
Nick
  • 10,309
  • 21
  • 97
  • 201
10
votes
5 answers

Better readability/contrast in a disabled JComboBox

I have a JComboBox that needs to be disabled at some point, but I am feeling that the disabled status makes it quite harder to read because the low contrast it has. It would be nice if only the drop-down arrow button would be shown as disabled,…
fortran
  • 74,053
  • 25
  • 135
  • 175
9
votes
3 answers

How can I change the font color of a disabled SELECT element? (Works in Firefox but not in IE)

How can I change the font color of a disabled SELECT element in IE? No matter what I tried it stays gray. I was able to change the background from gray to white but the text inside the disabled SELECT stays the same. What works perfectly for Firefox…
Emre Sevinç
  • 8,211
  • 14
  • 64
  • 105
8
votes
3 answers

Angular 5: Validating disabled fields

I found this post but it cant solve my problem. I can't validate a simple form with FormControls disabled. I did make a stackblitz example here, please check out my code and verify that is impossible to verify the value of the name control if it's…
Luis
  • 2,006
  • 5
  • 31
  • 47
8
votes
4 answers

Disabled button is clickable on Edge browser

I have problem with Edge browser. In my web site I have buttons with span tags inside them. In this span tags I bind text and icons. So far I had no problem but on Edge browser it is possible to click on disabled buttons. After investigating problem…
1
2 3
21 22