Questions tagged [disabled-input]
427 questions
-1
votes
2 answers
How to keep an element state unchanged forcefully
I have a form which behaves normally, with the inputs validated by simple validation. We installed a plugin, which provides some in-depth validation.
The issue arises when the plugin disables the submit button if it's validation fails on the…

Suthan Bala
- 3,209
- 5
- 34
- 59
-1
votes
1 answer
Tkinter update state (disable): need for redraw/refresh?
I cannot get the state of a (tk.)Label and (tk.)Checkbutton to visually turn to disable and normal depending on the value of an OptionMenu.
The command binding on the OptionMenu below seems fine, but my use of configure(state=...), in updateState()…

Berteh
- 73
- 8
-1
votes
1 answer
how to disable html input fields and buttons using jquery
I am having trouble disabling a button. What I am trying to do is to disable the button unless typing some words in the input. The following is my code.
$('.btn.btn-default').click(function(){
var post = $('input:text').val();
…

Yuan Huang
- 21
- 1
- 1
- 3
-1
votes
2 answers
Button (disabled = false) conditions; works in some cases and not in others
I have a problem with a code that works when I only use conditions for years, but when I add conditions for type, name and place the function does not produce the expected result (change the button status to disabled = false).
I use a document event…

Quoalquo
- 11
- 3
-1
votes
2 answers
How to make the difference between unckecked and disabled HTML checkboxes?
I'm trying to get the values from some checkboxes. Some are unchecked, some are checked but disabled. In both these cases, no POST data will be sent to the server by the browser.
What I'm wondering, is how can I know that the checkbox was unchecked,…

laurent
- 88,262
- 77
- 290
- 428
-1
votes
1 answer
Issue removeAttr("disabled")
I am programming one form and I would like to have this functionality:
If you click over United States as your country, some inputs get unlocked (before they are disabled). I have created this code in jquery:
$('option#usa').click(function(){
…

user3665872
- 21
- 2
-1
votes
2 answers
check if input empty so select box disabled jquery
i like to implement this function:
if the user click on the start date input so pop up the datapicker window and the user click on the date so input have value and the intervall input disabled false:
Here my thought:
and hier my jQuery…

Dave
- 2,815
- 5
- 19
- 22
-1
votes
4 answers
Unable to remove disabled attribute from a input file submit button
I am checking the file size and extension of a file before it is uploaded, and (for the most part) the code is running correctly. However, I am unable to remove the disabled attribute from the submit button if the file has the correct extension and…

Kyle
- 5
- 4
-1
votes
1 answer
Why the disabled="disabled" is not working in following scenario?
My code from smarty template is as below. The disable="disabled" property is not working on text fields. Can you tell me why it's not working?

PHPLover
- 1
- 51
- 158
- 311
-1
votes
1 answer
text area is not disabling or staying disabled
I have a checkbox:
and a text area
-1
votes
1 answer
enable and disable button is not working
I am trying to work on a form. Currently, the button is disabled. But when you click on a checkbox, the button should be enable, and then disabled again if you dont have a checkbox clicked on. I cant get the button to become enabled when i click on…

DrWooolie
- 7,637
- 7
- 20
- 19
-1
votes
4 answers
Button label disappers after disable action
This is a very weird problem am facing
HTML:
jQuery:
$(function(){
$buttonObject = $('#buttonObj");
$buttonObject.button('disable');
});
When I run this code and…

madhairsilence
- 3,787
- 2
- 35
- 76
-2
votes
1 answer
i want to disable date and time from current date and time, and working with custom date and time in angular and html, for date i am able to disabled
…

dev.aashu
- 1
- 2
-2
votes
2 answers
Vanilla Javascript: How to use cloned DOM node multiple times?
I am creating a very basic shopping cart.
It has dependent drop down menus and a button "Add more products" which will add one more row of the same drop down menus.
There are 2 drop down menus 2nd menu must remain disabled until an option is…

Abhay
- 524
- 1
- 13
- 28
-2
votes
5 answers
Removing disabled from checkbox
I have 2 checkboxes styled as toggle buttons.
The 2nd checkbox is by default disabled.
When the 1st checkbox is to ja I would like the 2nd checkbox to have disabled removed.
I have tried this with 2 codes but I did not succeed.
In my console I see…

Muiter
- 1,470
- 6
- 26
- 39