Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

disable other options in select except the selected

 $("#lbCountries").click(function () {
     $("#lbCountires option").each(function (index) {
        if ($(this).is(':selected')) {
            $(this).prop('disabled', false);
         }
         else {
            $(this).prop('disabled', true);
         }
      });
  });
Comment

PREVIOUS NEXT
Code Example
Javascript :: what is side effect 
Javascript :: jquery date 
Javascript :: javascript remove object from array 
Javascript :: mongoose-encryption 
Javascript :: Deploying Node.js Apps on Heroku 
Javascript :: remove all event listener from elemet 
Javascript :: Javascript screenshot in video 
Javascript :: element remove class 
Javascript :: html content in jspdf 
Javascript :: javascript converting an array into a map 
Javascript :: checking scroll position with js 
Javascript :: javascript discord bot 
Javascript :: json array in hidden field not coming 
Javascript :: request get response node js 
Javascript :: for each array javascript 
Javascript :: js append to array 
Javascript :: Convertir Map a Json 
Javascript :: how to do get request in axios 
Javascript :: how to auto update package.json 
Javascript :: React Native typescript start new project 
Javascript :: let var 
Javascript :: Material-ui bank icon 
Javascript :: javascript button click event 
Javascript :: react hello world 
Javascript :: post request javascript 
Javascript :: get selected text input javascript 
Javascript :: How can I check if an object is an array 
Javascript :: react before css 
Javascript :: nvalid response body while trying to fetch https://registry.npmjs.org/scheduler: Socket timeout 
Javascript :: react cdn link 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =