jquery enable disable textbox

Solutions on MaxInterview for jquery enable disable textbox by the best coders in the world

showing results for - "jquery enable disable textbox"
Roberto
06 Oct 2016
1//jQuery 1.6+ use:
2$("#inputID").prop('disabled', true); //disable 
3$("#inputID").prop('disabled', false); //enable
4
5//jQuery 1.5 and below use:
6$("#inputID").attr('disabled','disabled'); //disable 
7$("#inputID").removeAttr('disabled'); //enable
Jeremy
24 Jan 2021
1  $("#radiobutt input[type=radio]").each(function(i){
2    $(this).click(function () {
3        if(i==2) { //3rd radiobutton
4            $("#textbox1").attr("disabled", "disabled"); 
5            $("#checkbox1").attr("disabled", "disabled"); 
6        }
7        else {
8            $("#textbox1").removeAttr("disabled"); 
9            $("#checkbox1").removeAttr("disabled"); 
10        }
11      });
12
13  });
Oskar
17 Jan 2020
1$('input').prop('disabled', false);
Martina
15 May 2018
1// Disable #x
2$( "#x" ).prop( "disabled", true );
3 
4// Enable #x
5$( "#x" ).prop( "disabled", false );
6
Serena
10 Feb 2017
1$("input").prop('disabled', true);
2$("input").prop('disabled', false);
3
queries leading to this page
jquery enable disable witjh how to disable the whole formmake an input disables using jsqueryjquery how to disableonchange for disabled field jqueryasp net jquery input name disablejquery prop disabledjquery button prop disableddisable element in jquerydisable select jqueryhow to disable jqueryprop 28 22disabled 22 2c true 29 3bjquery disablejquery set input as disabledjquery undisable inputprop disabled true jshow to disabled input field in jquerydisable input text field jquerydisable an input jquerydisable true false jqueryinput box disable in jquery disable 2fenable an input with jquery 3fset element to disabled jquerydisable element jquery cssdisable astra focus formjquery form input disableddisabled a tag html jquerydisable jquery inputjquery disabled inputdisable button prop jqueryhow know the disabled input field in jqueryjquery handle value of disabled elementdisable enable in jqueryjqueyr disable input in form disable jquerydisabled textbox in jquerydisable input in jquerydisable text field jquerydisable in jquerytext box disable in jquerydiable input in jquerydisabled attr or propdisabled enabled jquerydisable input box jquerydisabled in jqueryset disabled on an element jqueryhow to disable input field jquerydisable all input jqueryselect enable jqueryenable input jqueryjquery prop disabled trueinput disabled jqueryenable textbox in jquerydisable fields jqueryjquery set form disablejquery disable an elementdisable a textbox in jqueryjquery input button disabledhow to enable input type text in jqueryjquery disable input fieldsdisable 2fenable an input with jqueryprop 28 27disablehow to apply jquery on disabled inputjquery disable a inutjquery this disablejquery attr disabled enabled 7bprops disabled 7ddisable html input jqueryactivating and deactivating some form in htmljquery disabled inputjquery this disabledenable false jqueryjquery how to disable inputjquery enable indisabled inputsjquery disable elementform attr select disable and enable in jsinput type text enable disable jqurydisable from adding input jqueryhow to add disabled class to the html input type using jquery 3fcheck input disabled jqueryjquery disable all inputsjquery disable checkboxjquery enabled disableddisable control using jquerydisable a field in jqueryhow to set disabled attribute in jquerydisable an input field jquerybutton disabled false in jqueryjquery disable objectjs prop disableddisable jquery textboxdisable content using jqueryjquery disable typeoverjquery is disabled inputdisable and enable input elements in a div block using jquerydisable field jquerydisable true jquerydisable element jquery by idjquery disabled 3d 22false 22textbox enable disable jqueryprop with disabledkjquery disable prophow to disable input type in jqueryjqury input diabelchange value of disabled input jquerymake input text disabled jquerymake field disabled jquerydisable input type text in jqueryjquery disable preverdisabled false jquerydisabled field jquerydisable enable input by button click jqueywhat is 24 28 22 23frmfilter input 2c 23frmfilter select 22 29 prop 28 27disabled 27 2c false 29 3bjquery remove disabled attribute from textboxhow to disable and enable textbox in jquerydisabled input jqueryjs set disabled prophow to disable textbox using checkbox in jqueryhow to disable input box in jqueryhow to add prop disabled jqueryjquery disable a fieldjquery return disable inputset input to disabled jqueryjquery disabled propenabled to disabled in jqueryinput disabled enabled jquerydisable textbox in jquerydisable input by jqueryenable object jqueryenable attribute using jqueryjquery disable input type textdisable text input jquerydisable input field in jquerydisable properties of an input field jquerydisable dark theme info plistdisabled the input bos in jqueryjquery disable attributehow to disable html input dom using jqueryjquery disable a input fieldhow to make input disable by propsdisabled attribut css jquery returning disabled input jqueryjquery code to enable a controldisable enable input jqueryinput disabled in jqueryjquery input enable 24 28e target 29 prop 28 27disabled 27 2ctrue 29 3bjquery cannot make input enabledjquery disable falsejavascript prop disabledjquery how to make disabled text field enabledjquery set input box disabled uder divdisable input element on form using jqueryon click disable true and false jquerymake text property disabled jquerydisable input type button jqueryjq enable or disable inputdisable input from jqueryjquery disable fielddisablestop entry any input in jquerydisable textbox jqueryjqyery elemnt enable disablejquery change disabled input valuejquery enable and disable inputdiv disabledjquery disable input 27remove native input in jqueryjquery input enable disablehow to disable all the prop of a element previously defined disabledjquery disable enable inputdisable input using jqueryjquery option disabled falsejquery deactivate inputhow to make html selected disabledjquery css disabledadd disabled input jqueryenable textbox jqueryprop disabled trueapply disabled using style css in jqueryhow to change value of disables input field using jqueryjquery disabled without disabledjquery checkbox disables option for selectorhow to disable a textbox in jqueryinput disabled 3d 7btrue 7dget enabled jqueryinput disabled false doesn 27t work jqueryjquery ui disabling elementsapply disable enable textbox using jqueryenable disable input jqueryadd disable to input field using jqueryhow to disable input fjquery make element not disabledhow to lock input type jquerylock input jqueryenable item using jquerytextbox disabled jqueryhow to make an element disabled in jqueryhow to add disabled in input use jquerylaravel input disableddisable 3d 22disable 22jquery form enable disabletext field enable disable jqueryjquery remove disabled inputdisabled property jqueryhow to disable element with jqueryjquery disable input fieldif disabled 3ddisabled jquery prop 28 22disabled 22 2chow to disable textbox in jqueryblock input jqueryhow to disable html element in jqueryjquery set input disable prop 28 27disabled 27 2c true 29disable text field in jquery prop 28 22disabled 22 2c true 29jquery disable input but take the valudisable text box jqueryjquery disable 28 29how to disable an item with jqeurydisabled true in jquerydisabled edit input html jqueryenable input field jqueryinput disabled property jqueryhow to disable a input field in jqueryjquery enable disabledinput enable jqueryprevent defaulthow to prevent xssjs disable focushow to disable input in jqueryajax jquery disable textboxdisable input button jquerydisable true by jquerydisable the texbox jqueryele prop 28 22disabled 22 2c true 29 in jquerystop input entry in any input field without disabled 2fenabled in jquerydisable input with jquerydisabler input with jquerydisable false jqueryenable and disable form inputdisabled element in jqueryjquery disable control 24 28 select 29 prop 28 disabled false 29disabled input field jqueryjquery disable enabledisable input jquertymake element disabled jqueryjquery remove boxdisplay none focusdisable textbox set in jqueryjquery disable buttonchange disabled jquery attr 28 27enabled 27 2c 27enabled 27 29 3bjquery disable all textboxdisable input type jqueryj query block an input from clickinput disabled functionhow to disable input field using jqueryjquery disable edit inputhow to disable input with jqueryjquery form enable specific input how to disable input text in jquerytextbox enable in jqueryjquery how to turn off disableddisable input jqury 24 28 27prop 28 22disabled 22 2c true 29 3bhow to check input field disabled in jqueryjquery disable textboxjquery set property disabledjquery input remove disabledjquery set enabledhow to set field disable in jquerytextbox enabled without jqueryhow to disable text field in jqueryjquery element disableddisable the textbox in jqueryjquery disable and undisable inputmake input disabled jqueryhtml disabled attribute jqueryng disabledjquery enable field on selectiondisable input field using jquerydisable using propelement enable httpsremove prop disabledhow to lock in input in jqueryjquery enable disabled fieldremove disabled input jqueryhow to disable and enable a button in jquery depending on input fieldsenable disable feild jqueryjquery enable disablehoe to disable input field in jqueryset enabled to false for all dom elements on formjquery make input disabledhow to disable element in jquerydisabled prop html javascripttailwind disable inputenable textbox using jquerydisable all elements of a formhow to set disabled true or false in jquerydisable value jquerydiv lengh jquerydisable select field jqueryjquery disable textboxesforms input jquery disable writedisable input jqueselect a disable textbox jquerychange attribute disabled jqueryhow to disabled a property in jqueryjq make element disabled 24 28 27 5bdata purpose 3d 22survey submit 22 5d 27 29 disabled 3d true jqueryjquery disable inputscss div disabledinput box disable jqueryjquery input disablehow to disable field by idenable disable by jqueryset value on disabled input jqueryjavascript jquery get input value above 2cdisable buttonjquery dissablelock input box jquerytextbox attribute disabled jqueryenable the elementhow to disable text field in jquery exampleinput button enable disable jqueryhow to make textbox enabled in jqueryformly disable fieldprop disabled true in jqenable disable element jqueryujquery set field to disabledhow to disable a function in jquery prop 28 22disabled 22 2c trues 29 3bjquery remove inpute disableddisable jquery elementis has disabled input jqueryjquery textbox enablejquery disable input text fieldhow to enable control usikng jqueryhtml enable textbox jqueryif enabled and disabled in jqueryhtml disable input jquerymake all input disabled jquerydisable textfield in jqueryjquery enablejqquery siable elementjquery diablehow to add disabled attribute in jqueryjquery disabled attributedisable the text box using jqueryhow to enable textbox using jquerydisable from jqueryjquery change disable input in divhow to disable a property in jqueryhow to disable element jqueryjquery disable form inputhow to disable enable css in jqueryjquery make input enable or disablecss to disable field in jqueryinput type disabled using jqueryhow to disable input type text in jquerycant read the disabled input jquerymake the input enabledtext field disabled in jquerydisable element using jqueryjquery disable input textdisable textarea in jquerydisable element from get class jqueryhow to disabled an inout using jquerydisable p elementjquery disabled and enablejquery enable elementj query block an input from changeenable or disable in jquerydisable using jqueryjquery input field disabledjquery change attribute disabledall input disabled jqueryprop disabled jquerychaned disable input jquerybootstrap jquery disable input on clickjquery disable input without disableddisable textbox input jquery javascript add prop disabledjqueyr disable inputhow to enable or disable the controls based on the property in jqueryinput tag disabled jqueryprop jquery disableddisable a element in jquerydesativar user with jqueryjquery on change enabledisabled true does not work jqueryjquery disable einput 2bhow to remove disabled input jqueryadd disabled to button javascriptdisable input property jqueryjquwery 24 disabledisabled jquery idhow to disa input in jquerydisable in jquery textboxjquery disable input request problemdisable input text jqueryhow to accept disable in jqueryif disabled enable jqueryhow to remove disabled in input using jquerywhen check an input disable other jqueryjquery make disableddisable textbox using jqueryjquery to disable textboxprop 28 27disabled 27 true 29find disabled input jquerycannot select a disabled attribute in jqueryjquery css enabled textboxjquery current html attribute is disabledfor security profile how to enable or disable the controls based on the property in jqueryprop 28disabled 29disabled element jquerydisable control in jqueryhow to disable input using jquery and greay it outinput field disabled jquerychange disabled attribute jqueryjquewry disable inputchange input disabled jquerydisabled css jqueryjquery disable input iddisable input field from jqueryuse jquery to get id and disable elementjquery disable editing textboxjquery add css property disabledlist group in jquery enable and disable disable cursor on number inputjquery disabledget value of disabled input jqueryjquery disable textbox control how to disable propset disable an input field using jquerydisbaled jquerydisable a element jqueryhow to enable input in jqueryjquery list item on selection disable and enableprop 28 27disabled 27how to check textbox is disabled or not in jquerydisabled input jquetextarea disable typingjquery diable elementform send disabled inputhow to disable input field using jqueyrset the attribute enable in jquerydisable input fields jqueryhow to enable text box in jquerydisable elementdisable input border on focusdisable specific input fields jquerydisable false jquery inputdisable property in javascript jquerydisable and enable jquerybutton disabled false jqueryjquery disable and enable inputjquery disable entrydisable and enable using jquerydisable input element using jqueryremove prop disabled jquerylastrow find 28 27input 2cbutton 2cselect 27 29 prop 28 27disabled 27 2c false 29 3bhow to set input disabled in jqueryhow to disable using prophow to textbox disabled in jqueryhow to apply disabled in jquerycode for disable input filed jqueryjquery disable undisablejquery select input by name and disabledhow to custom disable input field using jqueryjquery disable to type on inputsdisable input value in jqueryjquery disable input required problemprops disabledjquery disable all input fieldsenable input with jquerybutton disabledjquery enable dispable input prop 28 27disabled 27 2c false 29 3bjquery change input to disabledjquery disabled without disabled enabledtextbox disable in jqueryenabled and disabled in jqueryinput disable enable jqueryhow to disabled input in jqueryjquery disable input enablehow to disable and enable input field in jquerydisable and enable form input field jqueryhow to enable 26 disable a text field in jquerydisable field but not value in jqueryjquery input disabledreact disabled prophow to disable input button in jqueryjquery has disabled textbox value submittednot working prop disabled true jsmake form elements disableddisable something jquerydisable form input jqueryjquery disabled input by valueset disabled jqueryenable disable field jqueryjquery change disabled to enableddisable propjq enable inputhow to disable textbox in jquery and editable textdisabled jquery inputdisable inputs jqueryjquery disable text inputhtml input disabled jqueryused prop method to diseabledjquery disable textfieldtextarea disabledhow correct disable fields in jquery 24 28this 29 prop 28 22disabled 22 2c 22disabled 22 29 3bhow to add disabled tag to class in jquerytext input disabled jquerylaravel input text disabledinput enable disable jquerydisabled 2fenabel input html jquerymake input disable jqueryprop 28 22disabled 22 2c true 29disable in css text box using jqueryadd disabled to input jquerydisable enable select jquerydisable input button in jquerydisable element jqueryjuqery set disabledjquery disabled 3a truehow to enable input by jquerydisableelevation propjquery set disabled attributeprop 28disabled true 29jquery textbox remove disabledprop disabled true jquery for a specific divdisable input field with jqueryenable jqueryjquery diabled inputmake an input enable and disabled with htmljquery disabled truejquery css to disale select boxjquery set prop disabledenable input enablehow to make a field disabled in jqueryenable disable in jquerydisabled prop reactdisable libvirt dnsmasqjquery change disabled statejquery disable thisjquery model disabletextboxfor disabledjavascript jquery disable inputdisallow or disable toggle jquerydisable an element in jquerydisbale text jqueryhow to disabled element in jquerydisable false in jquery 26 3ahover disableddisable input field jqueryjquery disable all inputdisable control jqueryjquery set disabledjquery disable inputprop disable attr 28 disabled disabled 29 enabledenable disable button jquery on input text and selectjquery disabled falseturn disabled off jquerydisable enter in htmlhow to disable a text field in jqueryhow to stop form input without disabledenable and disable attr jqueryjquery disable input formjquery set disabled to falseenable input from jqueryjquery attr enable button disabled propenable disable textbox jqueryenable select jqueryprop 28 27checked 27 2c disable 29how to disable false in jqueryadd disabled prop to buttonhow to disable all inputs in jqueryjquery textbox disabled attribute disabled in jquerymake an input enabled and disabled with htmlhow to disable input by jqurydisable input jquery without disablejquery diable inputwhy jquery ui added disable attribute to the elements prop 28 27disabled 27 2c true 29 3b prop disabled jqueryjquery change disabledenable and disable input in jqueryjquery input name disablehow disable input jqyertyangular prop disabledenable control javascript jquerycss disable disbled using jqueryhow to enable input field in jqueryjquery block inputhow to disable a field in jqueryinput enabledhtml input disable arrow keysenable 3d falsedisable property in jquery textboxset disable for input by jquerydisabled to enable jqueryjquery textbox disabledpropert dosabled jquerzjquery lock delete input filedset disabled attribute jqueryjqueyr disable all input in formjs event when element enabledcss disabled false jqueryget disable textbox value using jquerydisable select with jqueryjquery get button enabled propertydisable or enable on entering the text in textbox jqueryjquery make a form field enabledjavascript prop disabled truejtextarea disable tabcell property enable jqueryjquery enabled divhow to make input field disabled in jqueryjquery set text input to disableddisable 28 29how to enable 2fdisable html form fields using jqueryjquery set input disabled attributedisable form field in jquerymake an input enable and disabled on clickinput button disabled jquerydisabled attribute in jquerydisable enable jqueryattr disabled enabled jquery prop disabledon change disabled field jqueryjs prop disabled trueremove disabled from input jquerydisable input with jqeryjquery disable a textboxdisabled input jsqueryenable disable button jqueryhow to disable input field by id in jquerydisable all input in forminput type disable jquery 24 28 22 23x 22 29 prop 28 22disabled 22 2c true 29 3batter disable in jquerydisable input field by id jqueryhow to disable input type textbox in jqueryjquery disable some to typing in inputhtml textbox disable jqueryhow to remove the disabled form the input by jquery enabled or disabled in jqueryset input disabled jquery prop 28 27disabled 27 2c 27disabled 27 29 enabledenable if pointerdisabled using jqueryselect form disable using prop to enable or disable the button 3fhow to disable a textbox jquerydisable input jqueryjquery onclick disable input fielddisable checked input using jqueryenable and disable input jquerydirect disable in jq 24 28 27 23submit 27 29 prop 28 27disabled 27 2c 27disabled 27 29 3bjquery disabledisabled true example in jquerymake select disabled jqueryjquery set input as disableddisable 2fenable an input with jquery exampleinput disable jquerycss onclick disableapply 3adisabled dynamically using jqyery using css 28 29how to set disabled in jquery on all inputdisable on jqueryhow to set the disable an element in jqueryjquery disable quant field on click prop 28 27disabled 27 27disabled 27 29disabled inpur jquery 5chow to enable or disable the control in jquerydisable property in jqueryjquery disable input in divdisabled jquerydisable text jqueryjquery disable collection of inputsjquery enable selecthow to enable and disable input in jqueryhow to get disabled textbox value in jqueryadd disabled to button jqueryjquery enable disable inputhtml input text disable arrow keysjquert id disable prop 28 27disabled 27 2c false 29create input type text jquery disabledprop disableddisable form with javascriptdisable enable checkbox jquerydisable controls jqueryadd disabled attribute jqueryprop disabled javascriptdisable jqueryjquery enable input by idjquery set input disabledjquery disabling form on its owndisable input event jqurymake disabled input box in jqueryjquery make input disabled with variable valuehow to show a disabled form jquery disable imputprop disabled true jquerydisable enable fields jqueryhow to make disable in input tag using jqueryhtml disable input on jquery set enable or disablehow to disable input in jquerydisabled enabled in jquerydisable a textbox using jqueryhow to disable an input field with jqueryjquery set an input disabledjquery diasable inputdiabled using jquerydisable typedinput jquery jquer disable falsejquery enable disable textboxjquery deactivate elementdisable attribute in jqueryenable a tag jqueryjquery turn input disabledenable and siable elementselect disabled jqueryenable disable input field jqueryjquery onclick disable fieldhow to disable input field in jquerydisabled input with jqueryinput field disabled using jqueryinput disabled event jqueryjquery input disbaledinput add disabled jqueryjs disable text field without jqueryenable disable jqueryjquery ui textarea disableduse jquery to disable an elementjquery enable html elementhow to make input disabled jqueryj query disabled an inputdisabled attribute jqueryenable 2fdisable dom input field jquerydisabled true jqueryenable disable textbox using checkbox jqueryusing jquery to disable textboxjquery all input disabledisibled propsdisabled input in condition jquertytextbox enable 2fdisable in jqueryenable and disable form elements jqueryjquery disable form fielddisable all textbox with in form tag in html jquerydisabled propdisabled jqurydisabled attribute jquery 5cenable prop again jqueryjquery ui disabling all the elementsjquery disable and enableif this has value disable input jqueryjquery remove disabled from all inputadd prop disabled jqueryinput field disabled in div using jquerydisable open end in jquerydosabled using jqueryenable disable textbox using jqueryremove disabled from html element on entering response in textbox jqueryjquery find input by id set disabledjquery disable inputsdisable field in jqueryhow enable jqueryjquery ui added disable attribute to the elementshow to set a div with a disabled prophow to enable disable a textbox in jquerydisable and enable input jquerymaking button disabled with disabled inputs and one enabled inputbutton props html disabledfield enable disablejquery set disabled flasej1query disable inputhow to enable a disabled field in jqueryjquery disable button until the input fields are enteredjquery text field disabledinput disabled to enablejquery enalbe inputjquery element are disabled blockjquery enable inputjquery set disabled input valuedisabled false in jquerydisable a text field in jquerydisable a input field in jqueryinput disable in jqueryinput text disabled jquerydisable jquery how to createhow to disable textbox using jqueryjquery disable formjquery prevent disablejquery make form element disabledjquery enable textboxdisable input in div jqueryjquey enablehow to clear autocomplete textbox in jquery 2b sign disable in jquery how to make enable input jqueryremover disabled input jquerydisabled input box jqueryjquery how to turn off ime of input fielddisable input box in jqueryjquery text box enablejquery disable input field by idjquery input disabled attrjquery enable disable textbox