jquery disable select option by value site:stackoverflow.com - Axtarish в Google
16 сент. 2011 г. · I need to disable a select option based on the value of a variable. The value is similar to one of the select option value and it needs to be disabled.
19 мая 2010 г. · $("#theSelect option:selected").attr('disabled','disabled') .siblings().removeAttr('disabled'); This will disable the selected option, and enable any ...
15 июл. 2019 г. · In your if statement that disables the lower two select elements you just need to change .val().length == 0 to .val and that will disable ...
25 сент. 2014 г. · Try this: $('#color').change(function(e){ if($(this).val() == "Pink"){ $("#size option[value='Medium']").prop('disabled',true); } else ...
1 мар. 2017 г. · First: you should check if option isn't selected ( !this.selected ) then disable it. Second: this.attr('disabled', true) doesn't work in jQuery. You should use ...
15 февр. 2018 г. · I want that If user selects today's date from select option 1, some time options from select option 2 should be disabled.
7 июл. 2018 г. · Disable the particular <option> in every <select> if that <option> is selected in any of the <select> elements. And re enable the previous <option> if the ...
4 мар. 2017 г. · Try this in Jquery: $(function(){ $('#select').change(function(){ if( $(this).val() == 2 ) { $('#text').attr('disabled', true); } }); });
6 янв. 2011 г. · I am trying to attempt to disable an option if it is selected in any of the selects. So for example if name="select1" has selected option "Test 2", then I want ...
9 апр. 2014 г. · I'm assuming you want to know how to disable an option on both the select boxes when an option is selected in either one.
Novbeti >

Ростовская обл. -  - 
Axtarisha Qayit
Anarim.Az


Anarim.Az

Sayt Rehberliyi ile Elaqe

Saytdan Istifade Qaydalari

Anarim.Az 2004-2023