Questions tagged [disabled-input]
427 questions
18
votes
5 answers
Fieldset and disabling all child inputs - Work around for IE
I have a fieldset that has a ui-view under it.
Each view had lots of fields(a field is a directive that wraps an input) under it.
It looks something like this:

Amir Popovich
- 29,350
- 9
- 53
- 99
14
votes
5 answers
How to display ui-boostrap tooltip on disabled button?
before posting here i searched and searched and i found several solutions for applying tooltips to disabled buttons, anyway none of these was using uib-tooltip from angular ui bootstrap.
Here is the code of my button:
10
votes
4 answers
simple_form: disable form without adding disabled: true or readonly: true to every input
I have a large simple_form form with fields that need to be enabled or disabled depending upon where the form's partial gets loaded.
My question is: how do you disable every form input quickly using simple_form helpers / wrappers?
Simple Form's…

Kelsey Hannan
- 2,857
- 2
- 30
- 46
9
votes
4 answers
Angular 4 - Reactive Forms enable/disable not working
I am having trouble enabling and disabling a form controls in my application. It is probably because the form is being enabled/disabled in an asynchronous context.
Here is how the code is.
user.component.html
9
votes
2 answers
Undisable certain elements inside disabled fieldset
Is there a way (like an attribute on an element) to 'undisable' a specific element when the parent fieldset is disabled? Preferable without any JavaScript. If not, what is a good practice to disable an entire form with specific exceptions?…

Thijs
- 3,015
- 4
- 29
- 54
9
votes
1 answer
7
votes
4 answers
POST values of disabled form elements
I have a form in which I need to disable an array of checkboxes and a few fields so that the user cannot change/alter their values. When I submit the form though, the POST values of the disabled elements are missing/null. How can I manage what I'm…

bikey77
- 6,384
- 20
- 60
- 86
7
votes
1 answer
Angularjs - how to get ng-message required error to display and disable input button at the same time
I want an error message to appear if the user clicks submit with no content, and I want the submit button to be disabled.
I can get either one working, but not both at the same time.
The code below brings up the message but allows an empty todo…

vtechmonkey
- 123
- 2
- 3
- 11
6
votes
1 answer
javafx - Bind button according to boolean value
Here, I want to disable and enable button according to the value of the boolean.
boolean result=(txtItem.getText().isEmpty() && txtQty.getText().isEmpty());
btnOrder.disableProperty().bind(xxxxx);
what should I enter there??

KNB
- 97
- 3
- 9
5
votes
1 answer
[attr.disabled]=true not working in Reactive Form Angular 15
Currently I'm using Angular 15 and in Angular 14 for the disabled input field in reactive form I used [attr.disabled]="disableField ? true : null".
This attribute after I update the Angular version 14 to 15 it's not working

Joya
- 51
- 3
5
votes
1 answer
disabled attribute doesn't work with required attribute on select tag
i have the following part of html template:
5
votes
4 answers
How to make a radio button read-only but not disabled?
The question "How to make radio button read-only?" has already been asked n times. But the solution is always disabled="disabled".
(There can also be complicated JavaScript solutions, that work with the click or change event and prevent the value's…

automatix
- 14,018
- 26
- 105
- 230
5
votes
1 answer
Disable input, allow click textbox
I'm building a .net web app using Bootstrap styling. I have a datepicker equipped textbox scenario where I would like to avoid the hassle of date string validation. I'm thinking I can simply check for empty string values (no input) as the only…

Freestyle076
- 1,548
- 19
- 36
5
votes
2 answers
Angularjs ngDisabled comparison expression not evaluating correctly
I am attempting to have a button be enabled or disabled in an angularjs app based on whether a comparison of two text fields evaluates to true or false. I have provided example code below and also made it available in a plunker here…

Simon McClive
- 2,516
- 3
- 17
- 13
5
votes
4 answers
Title Attribute on Disabled Elements in Firefox
I am building a very dynamic web-based application using a lot of Javascript to handle user events. I am in the process of making things a little more usable and came across a problem that I've never had before.
I am using jQuery, so factor that in…

Eric Ryan Harrison
- 759
- 2
- 10
- 22