Questions tagged [disabled-input]
427 questions
2533
votes
19 answers
Disable/enable an input with jQuery?
$input.disabled = true;
or
$input.disabled = "disabled";
Which is the standard way? And, conversely, how do you enable a disabled input?

omg
- 136,412
- 142
- 288
- 348
486
votes
11 answers
How to remove "disabled" attribute using jQuery?
I have to disable inputs at first and then on click of a link to enable them.
This is what I have tried so far, but it doesn't work.
HTML:

fatiDev
- 5,752
- 7
- 28
- 45
286
votes
9 answers
Values of disabled inputs will not be submitted
This is what I found by Firebug in Firefox.
Values of disabled inputs will not be submitted
Is it the same in other browsers?
If so, what's the reason for this?

omg
- 136,412
- 142
- 288
- 348
179
votes
4 answers
Disabled form fields not submitting data
Is there any way (with a attribute flag or something like that) to enable form fields that are disabled to submit data?
Or, if that's not possible, is there any way to block fields from editing with css or any other attribute than disabled without…

bardiir
- 14,556
- 9
- 41
- 66
177
votes
15 answers
How to disable a input in angular2
In ts is_edit = true to disable...
I just simply want to disable a input based on true or…

Tampa
- 75,446
- 119
- 278
- 425
92
votes
18 answers
How to disable EditText in Android
How can I disable typing in an EditText field in Android?

aj10
- 1,043
- 1
- 8
- 11
87
votes
3 answers
Should I use CSS :disabled pseudo-class or [disabled] attribute selector or is it a matter of opinion?
I'm trying to style a disabled input. I can use:
.myInput[disabled] { }
or
.myInput:disabled { }
Is the attribute selector the modern CSS3 way and the way to go forward? I used to use the pseudo-class, but I can't find any info on whether they are…

Peter
- 13,733
- 11
- 75
- 122
73
votes
9 answers
How to enable/disable inputs in blazor
I am trying to Enable/Disable a group of time inputs in Blazor based on a checkbox ; while for inputs of type button the below solution works ,for inputs of type time it doesn't :
Solution for button input that works:
47
votes
8 answers
How to make html
When I'm disabling a
element, it doesnt pass its variable.
What to do to look it like disabled, but be in "normal" state?
This is because I have a list of "selects", and sometimes…

el Dude
- 5,003
- 5
- 28
- 40
37
votes
4 answers
Disable button after click in JQuery
My button uses AJAX to add information to the database and change the button text. However, I wish to have the button disabled after one click (or else the person can spam the information in the dataabase). How do I do this?
HTML
28
votes
5 answers
Prevent typing in Text Field Input, Even Though Field is NOT Disabled/Read-Only
Can I prevent HTML Text Field input even when my field is NOT Disabled or Read-only? I have this requirement.
Maybe I can block all inputs via JS or jQuery?

gene b.
- 10,512
- 21
- 115
- 227
26
votes
3 answers
Knockout attr binding with attributes like 'readonly' and 'disabled'
What's the suggested "best practice" way to use Knockout's "attr" data binding with standalone attributes like "readonly" and "disabled"?
These attributes are special in that they are generally enabled by setting the attribute value to the attribute…

Armchair Bronco
- 2,367
- 4
- 31
- 44
23
votes
3 answers
How do I post disabled input
Hello I have some input but one of them is disabled ( yes and i need it for my time sheet )but how do I send it autocomplete.php to insert.php I've this error Undefined index: client1 in C:\wamp\www\testlp\insert.php on line 30
Here my code…

Thephpdoge
- 233
- 1
- 2
- 9
21
votes
7 answers
How to make a greyed-out HTML form?
I'd like to have a group of HTML text 's that can be all greyed-out (disabled) at the same time. I also want the entire area they are in to somehow be greyed-out or at least visibly disabled. I've seen things like this done in desktop…

Tony R
- 11,224
- 23
- 76
- 101
20
votes
3 answers
How to disable an input field using Javascript?
I'm starting with Javascript, I wrote this function:
function disableField() {
if( document.getElementById("valorFinal").length > 0 ) ) {
document.getElementById("cantidadCopias").disabled = true;
}
}
Which disables the second field named…

JorgeeFG
- 5,651
- 12
- 59
- 92