Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

disable textbox jquery

  $("#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"); 
        }
      });

  });
Comment

jquery enable disable textbox

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

PREVIOUS NEXT
Code Example
Javascript :: javascript clear classlist 
Javascript :: javascript interview preparation 
Javascript :: redirecting to a different route if user is logged in 
Javascript :: Javascript prime number check 
Javascript :: express js cors 
Javascript :: react native heroicons 
Javascript :: remove all spaces from string javascript 
Javascript :: opencv4nodejs mac install 
Javascript :: give multiple classes in modular css react 
Javascript :: javascript array remove empty strings 
Javascript :: javascript get first character of string 
Javascript :: drupal 8 get node from path alias 
Javascript :: how to add another schema id on mongodb 
Javascript :: js not equal to null 
Javascript :: javascript compare two objects 
Javascript :: angular router.navigate pass data 
Javascript :: how to get mat input value on keyup javascript 
Javascript :: express search query template 
Javascript :: modify margin top javascript 
Javascript :: jQuery UI Sortable, then write order into a database 
Javascript :: how to get current date in js 
Javascript :: vuejs set 
Javascript :: drupal 8 get node from form 
Javascript :: javascript stop delay 
Javascript :: node js get input from console 
Javascript :: generate a sequence numbers between a range javascript 
Javascript :: connect metamask with react app 
Javascript :: How to make "select option" select option for quantity 
Javascript :: angular cli create component with module 
Javascript :: vue watch handler 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =