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…
-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(){ …
-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