jquery enable disable textbox

//jQuery 1.6+ use:
$("#inputID").prop('disabled', true); //disable
$("#inputID").prop('disabled', false); //enable

//jQuery 1.5 and below use:
$("#inputID").attr('disabled','disabled'); //disable
$("#inputID").removeAttr('disabled'); //enable

0
9
Salem874 130 points

                                    $("input").prop('disabled', true);
$("input").prop('disabled', false);

0
0
3.9
10
Cybergeek654 115 points

                                    $('input').prop('disabled', false);

3.9 (10 Votes)
0
3.67
3
Swanful 90 points

                                      $("#radiobutt input[type=radio]").each(function(i){
    $(this).click(function () {
        if(i==2) { //3rd radiobutton
            $("#textbox1").attr("disabled", "disabled"); 
            $("#checkbox1").attr("disabled", "disabled"); 
        }
        else {
            $("#textbox1").removeAttr("disabled"); 
            $("#checkbox1").removeAttr("disabled"); 
        }
      });

  });

3.67 (3 Votes)
0
4.25
4

                                    // Disable #x
$( "#x" ).prop( "disabled", true );
 
// Enable #x
$( "#x" ).prop( "disabled", false );

4.25 (4 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
disabled input with jquery how to enable and disable input in jquery jquery disable input form jquery disable input disable input fields jquery disable input element using jquery add disabled prop to button how to disable prop .prop("disabled", trues); how to set field disable in jquery .prop('disabled', false); jquery disable a input field disable a textbox in jquery prop('disabled' jquery remove disabled input jquewry disable input prop("disabled", true); js prop disabled true javascript add prop disabled check input disabled jquery chaned disable input jquery .prop('disabled', true); disable input field using jquery enable disable textbox using checkbox jquery how to check textbox is disabled or not in jquery get disable textbox value using jquery how to get disabled textbox value in jquery prop with disabled prop("disabled", true) jquery set input as disabled how to disable input field using jqueyr disable input box jquery disableElevation prop how to custom disable input field using jquery set disable an input field using jquery disable and enable using jquery disabled enabled in jquery disable input jqury how to set disabled in jquery on all input enable and disable input in jquery jquery disable and enable input disable all input jquery how to remove the disabled form the input by jquery Js prop disabled how to make input field disabled in jquery disable or enable on entering the text in textbox - jquery remove disabled from html element on entering response in textbox- jquery disabled input field jquery disable a field in jquery find disabled input jquery make input disable jquery disable fields jquery jquery make input enable or disable disabled the input bos in jquery how to disable text field in jquery example $( "#x" ).prop( "disabled", true ); prop disabled javascript disable enable fields jquery disabled input box jquery disable and enable input jquery disable a text field in jquery jquery disable all input input disabled enabled jquery how to disable input field by id in jquery set value on disabled input jquery javascript prop disabled input tag disabled jquery disabled to enable jquery disable jquery textbox all input disabled jquery disabled prop html javascript jquery disable editing textbox jquery textbox disabled attribute j1query disable input .prop('disabled', true) disabled input in condition jquerty how to disable and enable a button in jquery depending on input fields disable form field in jquery jquery enable disabled field jquery input disabled attr how to change value of disables input field using jquery html enable textbox jquery html textbox disable jquery prop(disabled true) disable a input field in jquery input disable in jquery disable input type button jquery forms input jquery disable write how to disable textbox using checkbox in jquery how to disable and enable textbox in jquery .prop("disabled", true) remove disabled input jquery jquery input remove disabled how to disable a input field in jquery jquery form input disabled jquery disable form field create input type text jquery disabled jquery remove disabled from all input jquery disable a textbox how to disable input with jquery html disable input jquery set disable for input by jquery how to disable a textbox in jquery disabled field jquery disable and enable jquery change input disabled jquery how to disable input type in jquery .prop('disabled', false) jquery disable input id disable input value in jquery make input text disabled jquery how to check input field disabled in jquery input field disabled jquery make all input disabled jquery jquery disable textbox jquery diable input jquery disable einput+ how to remove disabled in input using jquery $(this).prop("disabled", "disabled"); input type disable jquery disabled input jsquery how to enable input in jquery how to add disabled in input use jquery how to set input disabled in jquery disabled jquery input ajax jquery disable textbox jquery remove disabled attribute from textbox how to enable input field in jquery disabler input with jquery enable input with jquery jquery disable input enable add disable to input field using jquery disable inputs jquery disable an input field jquery textbox attribute disabled jquery disable/enable an input with jquery remove prop disabled disable a textbox using jquery jquery is disabled input disable input button jquery disable input button in jquery how to disable all inputs in jquery input disabled event jquery code for disable input filed jquery jquery disable button disable jquery input disabled textbox in jquery remove disabled from input jquery jquery disable inputs jquery disable all inputs jquery change input to disabled disable and enable form input field jquery how to disable textbox in jquery and editable text jquery turn input disabled jquery disable edit input disable input jquery without disable input disable jquery set input to disabled jquery disable the text box using jquery jquery make input disabled using jquery to disable textbox prop disabled true input button disabled jquery disable the texbox - jquery disable textbox input jquery disable text input jquery .prop('disabled', 'disabled') enabled prop disabled true js disabled prop react jquery enable textbox input add disabled jquery how to enable textbox using jquery jquery to disable textbox how to enable input by jquery react disabled prop how to set a div with a disabled prop jquery textbox remove disabled textbox disable in jquery get value of disabled input jquery returning disabled input jquery disabled input jque how to disable input type textbox in jquery how to disable an input field with jquery how to make input disabled jquery disable html input jquery disable input element on form using jquery jquery text box enable jquery textbox enable disable all textbox with in form tag in html jquery disabled attr or prop input box disable in jquery disable input with jquery disable input type jquery jquery set input disabled attribute disable text field jquery jquery disabled true how to disable a field in jquery Disable And Enable Input Elements In A Div Block Using jQuery disable typedInput jquery attr disabled enabled jquery jqquery siable element enabled to disabled in jquery if enabled and disabled in jquery enabled and disabled in jquery display none focus laravel input text disabled laravel input disabled jquery dissable enable if pointer prevent default div disabled disable cursor on number input disable input border on focus how to prevent xss input enabled disable astra focus form textarea disable typing &:hover disabled disable how to make html selected disabled textboxfor disabled add disabled to button jquery add disabled to button javascript jtextarea disable tab button disabled tailwind disable input scss div disabled html input text disable arrow keys html input disable arrow keys jquery enable field on selection ng-disabled textarea disabled select form disable input disabled={true} css onclick disable how to make disable in input tag using jquery js disable focus jquery remove box disable p element disable libvirt dnsmasq disable form with javascript div lengh jquery disable dark theme info plist disable an element in jquery change disabled jquery css disabled false jquery cannot select a disabled attribute in jquery cant read the disabled input jquery enable and siable element jquery change disabled state jquery textbox disabled enable disable element jqueryu disable controls jquery make disabled input box in jquery how to disa input in jquery how to make textbox enabled in jquery jquey enable jquery handle value of disabled element how to make input disable by props input disabled function jquery set input disable input disable enable jquery jquery disable checkbox how to enable text box in jquery set enabled to false for all dom elements on form enable input jquery disable enable checkbox jquery desativar user with jquery jquery disable input' jquery disabling form on its own bootstrap jquery disable input on click jquery add css property disabled jquery set disabled to false disabled property jquery html input disabled jquery disable control jquery remove native input in jquery set element to disabled jquery disabled jqury prop disable how to accept disable in jquery disabled true example in jquery field enable disable make select disabled jquery how to disable element in jquery disable jquery how to create jquery disable textbox control direct disable in jq how to add prop disabled jquery javascript jquery disable input apply disable enable textbox using jquery enable = false disable select with jquery input type disabled using jquery disable select field jquery jquery diable element jquery set enabled enable disable in jquery textbox enable disable jquery how to enable a disabled field in jquery jquery enable select disabled a tag html jquery jquery disable textfield jquery diable how to disable input in jquery disable content using jquery .prop('disabled' 'disabled') how to enable control usikng jquery jquery attr disabled enabled jquery enable disable jquery checkbox disables option for selector jquery disable text input enable disable textbox using jquery disable the textbox in jquery jquery how to disable jqueyr disable input in form jqueyr disable input jquery disable input text text input disabled jquery jquery css disabled enabled or disabled in jquery block input jquery enable disable button jquery disable jquery element how to clear autocomplete textbox in jquery jqueyr disable all input in form jquery css to disale select box jquery disable attribute how to add disabled class to the html input type using jquery? disable element from get class jquery jquery element are disabled block using prop to enable or disable the button? element enable https j query disabled an input form attr select disable and enable in js disable text field in jquery activating and deactivating some form in html ele.prop("disabled", true) in jquery enable disable jquery set disabled on an element jquery propert dosabled jquerz jquery disabled false disable something jquery jquery input button disabled jquery button prop disabled disable text box jquery enable and disable form elements jquery jquery set disabled attribute disable true jquery disable="disable" disable true by jquery jquery set form disable jquery set field to disabled textbox enabled without jquery enable disable textbox jquery $('#submit').prop('disabled', 'disabled'); input enable disable jquery disable using jquery disabled attribute jquery\ jquery change disabled jquery change disabled to enabled change attribute disabled jquery jquery select input by name and disabled lastRow.find('input,button,select').prop('disabled', false); jquery disable field jquery input disbaled disable .on jquery disable select jquery jquery disable and undisable input how to disabled input in jquery how to disable using .prop how to disable input type text in jquery jquery disabled prop disable element jquery css make input disabled jquery jquery disabled="false" make an input disables using jsquery disable textfield in jquery disable input field jquery .attr( disabled disabled ) enabled disable element disable enable input jquery enable input enable jquery disabled: true input field disabled using jquery disable in css text box using jquery jq enable input how to set the disable an element in jquery button disabled false in jquery prop disabled jquery jquery disable typeover enable control javascript jquery jquery disable textboxes jq enable or disable input disable form input jquery disabled attribute in jquery turn disabled off jquery jquery disable form input jquery prevent disable how to disable text field in jquery enable disable input field jquery disable attribute in jquery set the attribute enable in jquery jquery change attribute disabled .attr('enabled', 'enabled'); disable element jquery text field enable disable jquery enable textbox using jquery disable input field in jquery make element disabled jquery disable a element jquery how to disable a property in jquery how to disabled a property in jquery jquery return disable input how to disable input field jquery jquery disable an element jquery set input as disabled disable prop disabled element in jQuery kjquery disable prop make field disabled jquery jquery input enable disable make an input enabled and disabled with html make an input enable and disabled with html make an input enable and disabled on click jquery disable undisable jquery onclick disable input field jquery onclick disable field jquery disabled input how disable input jqyerty how to textbox disabled in jquery disable input field by id jquery jquery form enable specific input jquery disabled without disabled jquery disabled without disabled enabled apply :disabled dynamically using jqyery using .css() apply disabled using style .css in jquery how to disable jquery jquery enable element enable and disable attr jquery enable disable input jquery button disabled false jquery how to set disabled attribute in jquery jquery disable a inut cell property enable jquery js disable text field without jquery enable object jquery disabled using jquery disable enable input by button click jquey jquery css enabled textbox how to disable enable css in jquery jquery make form element disabled jquery has disabled textbox value submitted jquery disable input type text how to disable element with jquery how to disable input text in jquery prop disabled true jquery disable false jquery input text box disable in jquery jquery input disable disable property in javascript jquery set disabled attribute jquery jquery .disable jq make element disabled jquery disable false prop('disable make the input enabled jquery diasable input jquery set prop disabled jquery enalbe input on click disable true and false jquery disabled attribut css jquery enable select jquery jquery enable disabled how to disable input using jquery and greay it out jquery disable prever Disable/enable an input with jQuery example Disable/enable an input with jQuery? input text disabled jquery how to disable input by jqury how to make a field disabled in jquery disable textbox set in jquery disable input jquerty disable enable jquery enable attribute using jquery input button enable disable jquery disable property in jquery jquery disable this how to disable an item with jqeury disabled attribute jquery select disabled jquery jquery lock delete input filed input disabled property jquery jquery disable enable jquery disable object prop disabled true in jq how to lock input type jquery jquer disable false disable enable select jquery atter disable in jquery + sign disable in jquery jquery set property disabled disabled element jquery how to disable textbox in jquery .disabled in jquery disable field jquery disable control using jquery used prop method to diseabled change disabled attribute jquery jquery enable disable input disable button prop jquery enable and disable form input css disable disbled using jquery asp.net jquery input name disable jquery input name disable add prop disabled jquery disable from jquery use jquery to get id and disable element jquery get button enabled property disabled INPUR JQUERY\ lock input box jquery jquwery $.disable $('[data-purpose="survey-submit"]').disabled = true jquery how to make an element disabled in jquery input disabled in jquery add disabled attribute jquery disabled css jquery jquery disable a field how to disable input f disable input with jqery jquery code to enable a control disable input field with jquery how to disable html input DOM using jquery jquery disable() disabled/enabel input html jquery jquery how to turn-off ime of input field what is $("#frmFilter input, #frmFilter select").prop('disabled', false); Enable the element dosabled using jquery get enabled jquery Jquery disable control prop('checked', disable) enable a tag jquery how to disable input in jquery j query block an input from change j query block an input from click jquery set input disabled jquery this disabled jquery enable input by id how to enable & disable a text field in jquery jquery enable indisabled inputs jquery disable input text field disable property in jquery textbox disable true false jquery disable control in jquery jquery disable input required problem jquery disable input request problem disibled props disabled enabled jquery jquery find input by id set disabled disabled false in jquery jquery how to turn off disabled making button disabled with disabled inputs and one enabled input if disabled=disabled jquery how to enable/disable html form fields using jquery jquery disable imput JQUERT ID DISABLE how to disabled input field in jquery how to set disabled true or false in jquery how to disable input button in jquery how to add disabled attribute in jquery disable jquery jquery attr enable jquery enable and disable input disable input type text in jquery disable input box in jquery how to disable input box in jquery how to disable textbox using jquery disable text jquery jquery disabled and enable disable input by jquery how to disabled an inout using jquery jquery ui textarea disabled css to disable field in jquery disable field but not value in Jquery jquery make input disabled with variable value jquery make disabled jquery set an input disabled disable element in jquery disabled true in jquery disable a element in jquery list group in jquery enable and disable jquery list item on selection disable and enable jquery disable quant field on click set disabled jquery jquery enable html element enable prop again jquery how to disable all the prop of a element previously defined disabled disabled true does not work jquery disabled in jquery set enable or disable jquery enable disable textbox jquery on change enable if disabled enable jquery jquery disable entry disabled prop diable input in jquery disabled jquery id enable textbox in jquery jquery set input box disabled uder div jquery set disabled input value jquery model disable disable value jquery .prop disabled jquery jquery prop disabled true how to disable false in jquery enable/disable DOM input field jquery disable properties of an input field jquery how to disable input field using jquery prop disabled true jquery for a specific div disable input from jquery disable element jquery by id disable specific input fields jquery disable element using jquery how to enable input type text in jquery how to disable a textbox jquery jquery this disable jquery block input jquery disable collection of inputs how correct disable fields in jquery how to disabled element in jquery disallow or disable toggle jquery how to disable element jquery html disabled attribute jquery disbale text jquery how enable jquery enable input field jquery select enable jquery how to disable html element in jquery enable jquery diabled using jquery how to disable a function in jquery jquery current html attribute is disabled jquery disabled attribute jquery disable enable input disable textbox using jquery jquery set text input to disabled jquery cannot make input enabled input disabled false doesn't work jquery jquery make a form field enabled disable() jquery enabled div how to apply disabled in jquery jquery set disabled flase for security profile how to enable or disable the controls based on the property in jquery how to enable or disable the controls based on the property in jquery js event when element enabled how to enable or disable the control in jquery jquery disabled disable in jquery how to add disabled tag to class in jquery disable false in jquery disable textbox in jquery juqery set disabled jquery how to disable input disable textbox jquery textbox disabled jquery jquery option disabled false jquery form enable disable how to lock in input in jquery disable input text jquery how to make enable input jquery jquery make element not disabled disable checked input using jquery disable input using jquery enable false jquery how to disable field by id why jquery ui added disable attribute to the elements jquery ui added disable attribute to the elements jquery ui disabling all the elements jquery ui disabling elements jquery disable form how to disable input field in jquery jquery prop disabled stop input entry in any input field without disabled/enabled in jquery stop entry any input in jquery javascript prop disabled true onchange for disabled field jquery on change disabled field jquery disable input jquery jqury input diabel disabled jquery disable in jquery textbox disable open end in jquery jquery enable dispable input jquery disable input field jquery input enable disable enter in html disable input in jquery jqyery elemnt enable disable jquery deactivate input input enable jquery disable field in jquery enable input from jquery input disabled jquery jquery disable input but take the valu jquery disable some to typing in input jquery disable to type on inputs html disable input on jquery disabled false jquery prop disabled .prop disabled jquery enable input set input disabled jquery .disable jquery jquery set disabled disbaled jquery jquery element disabled lock input jquery disabled true jquery disabled input jquery use jquery to disable an element jquery input disabled jquery disable jquery deactivate element jquery disable input jquery disable element jquery enable enable item using jquery jquery disable input field by id
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source