Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

disable input field with jquery

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

jquery check input is disable

if($('textbox').is(':disabled')){
     //textbox is disabled
}
Comment

disable input field using jquery

//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

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

PREVIOUS NEXT
Code Example
Javascript :: jquery add disabled to button 
Javascript :: login to discord with token 
Javascript :: jquery 2 decimal places 
Javascript :: create json server and run command 
Javascript :: google colab clicker 
Javascript :: javascript radian to degree 
Javascript :: ionic lifecycle 
Javascript :: ajax cdn 
Javascript :: jquery find if select option exists 
Javascript :: vimeo playback speed 
Javascript :: get parameter from the actual url javascript 
Javascript :: chrome design mode console 
Javascript :: double click in jquery 
Javascript :: Finished. Please run Mix again. 
Javascript :: autoplay owl carousel 
Javascript :: get current url js 
Javascript :: jquery check how many child elements 
Javascript :: jquery-3.6.0.min.js 
Javascript :: random color generator javascript 
Javascript :: how to add json data to xmlhttprequest 
Javascript :: electronjs start with devtools enabled 
Javascript :: colored console.log 
Javascript :: jquery ajax basic authentication 
Javascript :: how to import lodash in react 
Javascript :: run a function after delay javascript 
Javascript :: node-fetch post request example 
Javascript :: p5 map function 
Javascript :: javascript check if element has class 
Javascript :: react simbu 
Javascript :: jquery submit form on enter 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =