Questions tagged [disabled-control]
322 questions
2
votes
3 answers
angular material disable controls using fieldset
I am using angular material 7.2.0.
I am trying to disable form fields using fieldset container.
for input controls it works, but not for mat-select.
I know I can declare it in both fieldset and mat-select and it works but I want more generic code to…

bat7
- 836
- 1
- 8
- 22
2
votes
3 answers
Multi-Select DropDown: Disable selected option only (jQuery)
I need to disable each selection option in a dropdown upon a user selecting it.
Right now the code below disables only values with the value of "red," in the dropdown because I have the value="red," hard-coded. How would I make it grab the users…

rps75
- 35
- 1
- 7
2
votes
1 answer
Disabling a ComboBox item in Win32 API
I would like to disable an item in a combobox in my Win32 application (C++). I'm not quite sure how to do this. I'm trying to achieve something that looks like this:
Notice how CollectionItem2 and 3 are greyed-out.
Any help would be very much…

Michael
- 115
- 10
2
votes
1 answer
jquery .is(':disabled') not working
I want to add class disabled if li has attr disabled=true. But somehow this is not working. please see if anyone can help.
$('.expandable-panel').find('.expandable').each(function () {
if(!$(this).is(':disabled')) {
var title =…

Richa
- 4,240
- 5
- 33
- 50
2
votes
0 answers
How to prevent Selectize selected options from being removed with remove_button when control is disabled
I create a selectize with the following options
{
plugins: ['remove_button'],
delimiter: ',',
loadThrottle: 600,
valueField: 'id',
labelField: 'name',
searchField: ['name'],
openOnFocus: true,
preload: 'focus',
…

cosan
- 155
- 2
- 14
2
votes
0 answers
conditional disable radio button in angular 2
Purpose is to allow a button to change isEdit to true or false. On true, the controls are enabled (editable), but on false they are still visible only disabled.
Angular 2, the following WORKS for checkboxes:

Yogi Bear
- 943
- 2
- 16
- 32
2
votes
0 answers
Text selectability in disabled HTML inputs
In our application we use disabled text inputs quite often. However, they are not user-friendly, because in some browsers (Chrome, Firefox, but not e.g. IE) you cannot select text inside with the mouse. This makes it very difficult to copy text that…
user319799
2
votes
1 answer
Javascript: How to disable submit button until all fields are validated?
I have several validation functions that work fine and I want to write an additional validation in simple javascript (no jQuery, etc) for the entire form that disables/enables the Submit button depending on whether the other validation functions…

5120bee
- 689
- 1
- 14
- 36
2
votes
0 answers
Swift Date Picker object enable/disable
I want to disable a date picker object in swift 2. I already do this with UI objects and it works fine. E.g.:
dailyNotificationSwitch.enabled = false
When I try this with a date picker it does not have the same effect. Users can still use the date…

Nikolay
- 87
- 10
2
votes
3 answers
Asp.net button doesn't submits disabled controls, even with submitdisabledcontrols="true"
I have a page with some disabled controls, it looks like this
2
votes
1 answer
iOS: UIButton's title color when disabled
I'm using Mac OS X El Capitan 10.11.2, Xcode 7.1.1 and iOS 7 as a deployment target for the iOS application at hand.
Currently, I want to stylize a UIButton, so that it's text and background (color/image) is grayed out/has lowered alpha when…

Ivan Caravanio
- 597
- 1
- 7
- 20
2
votes
2 answers
Disabled button in a loop for single column
I have 1 row and 3 column. Each column have 3 buttons with different ids.
example id:
--column 1-- --column 2-- --column 3--
id="1morning" id="2morning" id="3morning"
id="1evening" id="2evening" …

Fai Zal Dong
- 323
- 6
- 25
2
votes
2 answers
WebView Disable DoubleTap
I am developing an android application and successfully disabled zoom-in, zoom-out by swiping. But I have failed to disable double tap zooming.
Is there an obvious function to use?
Thanks.
Here is my…

Barış Çalışkan
- 49
- 9
2
votes
2 answers
2
votes
1 answer
How can I have a visually active (checked), disabled toggle button in Bootstrap?
Bootply
I have a data-toggle checkbox group, where I'd like one (or more) of the options to be checked, yet disabled.
Is there a built-in visual style, or would I need custom CSS? This doesn't seem to work:

alexw
- 8,468
- 6
- 54
- 86