showing results for - "disable input field from jquery"
Kelsey
18 Apr 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
Celia
29 Oct 2018
1// Disable #x
2$( "#x" ).prop( "disabled", true );
3 
4// Enable #x
5$( "#x" ).prop( "disabled", false );
queries leading to this page
prop 28 27checked 27 2c disable 29jquert id disabledisable and enable element in jqueryhow to make input field disabled in jquerydisable an element in jqueryinput type disable jquerydisabled jquerydisable input fields jquery by classjquery button prop disabledjqyery elemnt enable disabledisable true false jqueryjquery disable a textboxhtml disable input jqueryjquery make form element disabledfind disabled input jquerydisable divs in a div jquerydisabled false in jqueryjquery element are disabled blocktextarea disableddisable input button jqueryhow to disable input fprop disabled truedisable property in jqueryinput enable disable jqueryjquery change disableddisabled all input in div jqueryhow to disable a tag in jquerydisable jquery elementjquery enable input by idjquery disable imputset enabled to false for all dom elements on formdisable controls jqueryuse jquery to get id and disable elementdisabled property jqueryinput disable in jqueryhow to custom disable input field using jqueryhow to enable 2fdisable html form fields using jqueryjquery set disabled input valuejquery this disablehow to add disabled tag to class in jqueryall fields disable using jqueryjquery form input disabledhow to disable function jquerydisable field jqueryinput disabled in jquerydisable i tag in jqueryhow to disable and enable input field in jqueryjquery disable fieldjquery disable all input formjquery disabled and enablejqueyr disable inputjquery disable input 27how to disabled a property in jqueryjquery disable a input fieldhtml p tag disable jqueryinput type text enable disable jquryhow to disable div in jqueryjquery set input as disabledjquery disable einput 2bmake an input enable and disabled with htmljquery enable disable inputdisable all inputs in div jqueryenable disable feild jqueryhow to disable a in jquerydisable div in jqueryprop disabled jqueryjquery disable enableblock input jquerydisable all inputs jquerydisable field but not value in jqueryjquery enable selectapply disabled using style css in jquerydisabled enabled in jqueryfor security profile how to enable or disable the controls based on the property in jqueryjquery set input disabled attributeremove prop disabled jqueryjs set disabled propjquery input button disableddisable enable fields jqueryif this has value disable input jquerydisable from adding input jqueryjquery disable and enablejquery input disbaledkjquery disable propdisable all inputs of form jqueryjquery disable entryjquery disable divjquery disable typeoverjquery disable input formhow to check element is disabled in jqueryhow to check input field disabled in jqueryjquery enable disabledjquery deactivate elementset input to disabled jqueryenable 3d falsedisabled input field jqueryremove prop disabledinput disabled 3d 7btrue 7djquery attr enable jquery disable atag disable jquerychange input disabled jqueryprop 28 22disabled 22 2c true 29how to make input disabled jquerydisabledisable function jqueryjquery input remove disabledreturning disabled input jquerydisable fields jquerydisable prophow to enable or disable the control in jquerydisable the textbox in jqueryjquery input enableprop 28 27disabledisable whole div jquery 24 28 27prop 28 22disabled 22 2c true 29 3bhow to apply jquery on disabled inputjquery enable disable elementsmake input disable jqueryjquery disabled input by valuehow to disable input with jqueryjquery enable disable witjh disable input box jquerytailwind disable inputmake div disabled jqueryhow to enable control usikng jquerydisable 2fenable an input with jquery examplejquwery 24 disablehow to disable text field in jqueryenabled and disabled in jqueryjquery make disabledhow to add disabled class to the html input type using jquery 3finput enabledhow to add disabled attribute in jquerycreate input type text jquery disableddisbale text jqueryjquery how to make disabled text field enableddisable a field in jqueryhow to disable using propadd disabled input jquerymaking button disabled with disabled inputs and one enabled inputhow to disable input by jqurydisable element jqueryjquery set input as disabledremover disabled input jqueryset disabled attribute jqueryhow to add disabled in input use jqueryjquery disable functionhow to prevent xssjquery input disabledisable element using jqueryjquery text field disabledchange attribute disabled jquerycell property enable jquerymake all input disabled jquerydisable a input field in jqueryjquery how to disable inputhow to remove disable tag using jquerydisable specific input fields jquerynot working prop disabled true jsinput tag disabled jquerydisabled attr or propdisable input element on form using jquerydisable properties of an input field jqueryenable false jqueryjquey enablejquery disabled inputset disable for input by jquerydisabled form fields jqueryhow to remove disabled input jquerydisable input field from jqueryjquery enable disable textboxjquery disable a fieldjquery remove disableddisable input jqueryenable the elementinput field disabled jqueryhow to disable input field by id in jquerydisable astra focus formdisabled propangular prop disableddisable cursor on number inputdisabled attribute in jqueryscss div disableddisable true by jquerychange disabled jqueryhow to set a div with a disabled propjquery make element disabledjquery change disabled input valuedisabled input with jquerydisable and enable jquerychange disabled attribute jquerydisable jquerydisable and enable form input field jqueryjquery disable inputsdisabled true in jquerydiv disable jqueryprop jquery disabledenable disable button jquery on input text and selecthow to disable propset disabled jqueryjquery dissablebootstrap jquery disable input on clickhtml input disabled jqueryinput button enable disable jqueryhow to disable field by idjquery disable inputdisable text input jqueryhow to make a div disabled jquerycheck input disabled jqueryj query disabled an inputjquery css enabled textboxhow to disable false in jqueryinput box disable jquerylaravel input disableddisable input fields jquerydisabling input field jqueryjquery disabled 3d 22false 22enable attribute using jqueryprops disableddisabled css jquerydisable p elementdisable element jquerujquery disable elementjquery enable disabled fielddisable text field jqueryjquery how to disablehow to make input field data disable in jqueryjquery disable input idadd disable to input field using jquerydiv disabled with jquery 24 28 27 5bdata purpose 3d 22survey submit 22 5d 27 29 disabled 3d true jqueryhow to disabled a tag in jqueryhow to set disabled in jquery on all inputcode for disable input filed jquerypropert dosabled jquerzjquery disable preverdisable input jqurydisable typedinput jquery 24 28 22 23x 22 29 prop 28 22disabled 22 2c true 29 3bdisable a text field in jquerydisabled field jquerydisable a tag jqueryis has disabled input jquerydiable a form fields jqueryjquery enable disabled elementjquery to disable elementdisable and enable using jquerydisabled enabled jquerylock input jqueryjquery set all input fields disabledjquery disable and enable inputjquery remove boxjquery disable buttonenabled to disabled in jqueryadd disabled attribute jqueryinput disabled functionset disabled on an element jquerydisable input field with jqueryjquery disable text inputjqiery disable element in pageremove disabled from input jqueryjquery disable input in divprop 28 27disabled 27disable from jquery prop 28 22disabled 22 2c true 29jquery disable form input disabled in jqueryadd disabled to button jquerydisable input property jquerymake disabled input box in jqueryjquery enable and disable inputadd disable to element jquerydisable a element jqueryenable input jqueryjquery disable thisadd prop disabled jqueryif enabled and disabled in jquerylaravel input text disabledbutton props html disableddisable div using jqueryjquery set prop disabledjquery disableddisabled using jqueryhtml disabled attribute jquerydisabled true example in jquerydisable text field in jqueryset value on disabled input jquerydisabled attribute jqueryused prop method to diseabledbutton disabled false jqueryon click disable true and false jquerydisable input type button jqueryenable jqueryjquery remove disabled inputjquery disable input type textmake text property disabled jqueryjavascript jquery get input value above 2cdisable buttoninput disable enable jqueryjquery input field disabledhow to enable 26 disable a text field in jqueryjquery set disabledchange value of disabled input jquerywhen check an input disable other jqueryenable and disable form elements jqueryjquery disable input fieldshow to disable input type in jquery prop 28 27disabled 27 2c 27disabled 27 29 enabledadd disabled attribute value to input jquerydisable 2fenable an input with jquerymake field disabled jquerytext input disabled jqueryjqueyr disable input in formset input disabled jqueryhow to disable a div in jqueryjtextarea disable tabjquery model disableset the attribute enable in jqueryjqueyr disable all input in formdisable all input under form jqueryselect form disable textbox enable disable jqueryjquery disable an elementdisabled jquryjquery onclick disable fieldhow to set disabled attribute in jqueryjquery how to turn off ime of input fieldjquery set property disabledjquery disable input fieldhow to make a field disabled in jquerydisable button prop jqueryjquery prevent disableinput disabled enabled jqueryhow to disable a text field in jqueryinput disabled property jqueryjquery is disabled inputenable prop again jquerydisable false jquerydisableelevation propjquery disable falsedisable enable select jqueryjquery onclick disable input fieldenable 2fdisable dom input field jqueryhow to disable element with jqueryjuqery set disabled disable jqueryhtml input disable arrow keyshow to disable select jquerydisable jquery how to createdisabled true jqueryhow to apply disabled in jquerydisable input value attr in jqueryjquery change input to disabledjquery set input disabledisable html using jqueryhow to disable a element in jquery using iddisable textfield in jquerydisable input jquedisable input in div jquerydisable div jqueryhow to disable input in jqueryhow to disable div using jqueryjavascript prop disabledjquery set enabledfield enable disablejs prop disabled trueprop with disableddisable input by jqueryjquery disabled attributejquery get button enabled propertystop entry any input in jqueryhoe to disable input field in jqueryjquery enable html elementenable disable button jquerydisable with jquerydisable and enable input elements in a div block using jquerydisabled false jquerydisable all input fields in div jquerydisable textbox input jquery input field disabled in div using jqueryjquery disable input textdisable select jquerydisable html input jqueryprop disabled true jquery for a specific divenable and disable input jqueryhow enable jquerydisable input field value get jqueryhow to disable input box in jqueryset all input to disabled jqueryhow to disable a property in jqueryenable control javascript jquery 24 28e target 29 prop 28 27disabled 27 2ctrue 29 3bhtml input text disable arrow keysenable select jqueryhow to disable element in jqueryhtml property disable using jqueryhow to make div disabled in jqueryjquery all input disableprop disableall input disabled jqueryjquery to make a div disableddisable 28 29disable all input field jqueryenable disable input jquerydo disabled fields get null value with jquerydisable open end in jqueryatter disable in jqueryinput disabled event jqueryinput field disabled using jqueryif disabled 3ddisabled jqueryjquery disable input but take the valujquery disable edit inputdisable control in jqueryjquery set disabled to falseinput button disabled jquery prop disabled jquery 24 28 select 29 prop 28 disabled false 29jquer disable falsejs disable focusjquery set field to disabledjquery disable input field by idjquery on change enablejquery make element not disabledjquery option disabled falsejquery disable all inputsjquery disabled without disabledjquery set an input disableddisable elements of div jqueryhow to disable input type textbox in jqueryselect enable jqueryenable textbox in jqueryinput add disabled jqueryremove disable using jquerymake input text disabled jqueryinput box disable in jquery jquery css disableddisable input field by id jqueryj1query disable inputchaned disable input jquerydisable all input jqueryjquery ui disabling elementsenable disable by jqueryjquery disable input text fieldjquery set text input to disabledtext field enable disable jquerystop input entry in any input field without disabled 2fenabled in jquerywhat is 24 28 22 23frmfilter input 2c 23frmfilter select 22 29 prop 28 27disabled 27 2c false 29 3bjquery undisable inputhow to remove disabled in input using jqueryset enable or disablejquery disable all inputs in bodydisabled inpur jquery 5cjavascript jquery disable inputdisable attribute in jqueryhow to enable a disabled field in jqueryforms input jquery disable writeinput disabled jqueryattr disabled enabled jqueryjquery remove inpute disabledbutton disableddiv disabled jqueryhow to enable input type text in jqueryjquery adisableusing prop to enable or disable the button 3fdisabled element jquerydisable property in jquery textboxset disable an input field using jqueryfully disable item jqueryhow disable input jqyertyjquery disable input request problemdisable control using jquerydisable html usiing jquery tag jquery enable field on selectionjquery set input box disabled uder divjavascript prop disabled truejquery this disabledjquery current html attribute is disabledjquery change disable input in divdisable an input jquerydisable input text field jqueryenable if pointerjquery make a form field enableddisabled to enable jqueryhow to disable jqueryjquery disabledisable content using jqueryhow to disable input field in jqueryjquery input disabled attrjquery disable controlselect disabled jqueryjquery enable disabledisable input jquertydisable form with javascriptdisable element jquery cssdisable something jquerymake an input enabled and disabled with htmlelement enable httpshow to disable html input dom using jquerydiable input in jqueryjquery block inputenable and disable form inputdisable input border on focusprop disabled true in jqjquery disable input without disableda tag disabled jquerydisable input value in jqueryreact disabled propjquery disable and undisable inputjquery disableinput type disabled using jqueryjquery disable all inputdisabled jquery inputupdate a disabled form field jquerthow to disable all the prop of a element previously defined disableddisable jquery inputprop 28 22disabled 22 2c true 29 3bjquery text input not disabledjquery diable inputenable disable field jquerydisabled prop reacthow to disable and enable a button in jquery depending on input fieldsadd disabled to button javascriptjquery disable a divhow to set field disable in jqueryjquery enalbe inputhow to disable all inputs in jquery prop disabledadd disabled attribute to input jquerydisable input element using jquery 26 3ahover disableddisable input button in jqueryjquery make input enable or disabledisable form field in jqueryinput text disabled jquerydisable in jquerydisable enable input jqueryjquery set value of input to another input disabledbutton disabled propjquery diable elementjquewry disable inputhow to disable input field using jqueryjquery disable button until the input fields are enteredremove disabled input jquery prop 28 22disabled 22 2c trues 29 3benable and disable input in jquerydisable div tag in jqueryenable and siable elementdisabled all input field html jquerydisable false in jqueryjquery lock delete input fileddisable inputs jqueryjquery enable inputenable disable jquerymake select disabled jqueryhow to disabled input in jqueryprop disabled true jshow to make enable input jquerydisplay none focusadd disabled to input jqueryinput disable jqueryjs prop disabledhow to disable an input field with jqueryset element to disabled jqueryjq enable or disable inputdisabled the input bos in jqueryhow to lock in input in jquerydisabled input in condition jquertyjquery set disabled attributeinput disabled false doesn 27t work jquery 2b sign disable in jquery how to disable html element in jquerydisable true jqueryhow to make html selected disabledmake an input enable and disabled on clickdisable an input field jqueryjquery find input by id set disabledjquery disabled inputjquery disable all input fieldsdisibled propsjquery ui added disable attribute to the elementsdisable div with jquerydisabled input jsqueryjquery diabledisable input jquery without disablejquery diasable inputprop 28 27disabled 27 true 29how to disable a select box in jquerydisable input in jqueryjquery attr disabled enabledcss onclick disabledisable element jquery by idjquery diabled inputlock input box jqueryif disabled enable jquerydisable enable jqueryget value of disabled input jqueryhow to make an element disabled in jquerydiv disabledjquery remove disable inputhow to disable all inputs in div in jquery prop 28 27disabled 27 2c false 29 3bjquery disabled truedisable enter in htmljquery disable inputremoving disabled attribute from input tags jqueryjquery enable indisabled inputshow to disable a field in jquerydisable input field using jquerydisable text jqueryenable object jqueryjquery input disabledmake element disabled jqueryhow to disable all input fields in jqueryjquery disabled propjs disable text field without jqueryjquery disable input required problemjquery ui disabling all the elements prop 28 27disabled 27 2c false 29disabled prop html javascripton change disable inputhow to disable a input field in jqueryjquery set input disabledmake the input enabled prop 28 27disabled 27 2c true 29enable disable in jquerydisabled attribute jquery 5cempty input field and set to disabled jquerydisbaled jquerycan i disable div in jqueryhow to disable input in jquery enabled or disabled in jqueryjquery remove disabled attribute from textboxjquery element disableddisable input with jqeryprevent defaultjquery remove disabled from all inputjquery prop disableddisable using jquerydisable input text jqueryjqquery siable elementng disabledjquery disable form 24 28this 29 prop 28 22disabled 22 2c 22disabled 22 29 3btext field disabled in jqueryhow to enable text box in jqueryenable textbox using jqueryhow to disable form fields in jquerydisable input from jqueryjquery change disabled to enabledhow to disable input type text in jqueryjquery input enable disable 7bprops disabled 7dhow to set input button disabled in jquerydisabled attribut css jquery how to disable input field using jqueyrjquery set disabled flasedisable select with jquerymake input disabled jqueryhow to disable an element in jquerydisable on jqueryjquery disable collection of inputstextarea disable typingjquery make input disabledjquery prop disabled truedisable false jquery inputdisabled element in jqueryhow to set input disabled in jqueryhow to make disable in input tag using jquerydisable input field in jqueryhow to enable and disable input in jqueryjquery enable elementdisabled input jqueryapply 3adisabled dynamically using jqyery using css 28 29how to disable input text in jqueryjquery disabling form on its owntextboxfor disabledadd disabled prop to buttonjquery enabledisabler input with jqueryjquery enabled disabledjs event when element enabledenable or disable in jqueryjquery disabled 3a truedisabled in jqueryprop 28disabled true 29disable enable in jqueryhow to add prop disabled jquerydisable 2fenable an input with jquery 3f attr 28 27enabled 27 2c 27enabled 27 29 3bhow to remove the disabled form the input by jqueryenable item using jquery prop 28 27disabled 27 2c true 29 3bjquery disable undisablejquery change attribute disabledhow to set the disable an element in jquerydisable input box in jqueryjquery disabled without disabled enabledjquery disabled divjquery ui textarea disabledremove disable jquerydisable input field jqueryjquery disable textboxcss disabled false jquerydisabled input box jquerydisabled input jquehow to check input field is disabled in jqueryhow know the disabled input field in jquerydisable field in jqueryprop disabled javascriptenable disable input field jqueryenable disable element jqueryuremove disabled attribute from input jqueryprop disabledjavascript add prop disabledjquery turn input disableddisable select field jquerydisabled edit input html jqueryjquery disabled falseprop 28disabled 29disable input with jquerydisable input using jqueryjquery disable a inutform attr select disable and enable in jsdisable control jqueryjquery disable objectjquery disable input enabledisable fieldset jquerymake a div disabled jqueryjquery cannot make input enabledmake an input disables using jsqueryhow to change value of disables input field using jquerydisable and enable input jqueryhow to disable input field jqueryonchange for disabled field jquerydisable input event jquryjquery disable form fieldbutton disabled false in jquerydosabled using jquerywhy jquery ui added disable attribute to the elementsdisable input type jquerydisable using propdisable input field from jquery