Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

howt to disable a select tag using js

document.getElementById("one").onchange = function () {
  document.getElementById("two").setAttribute("disabled", "disabled");
  if (this.value == 'car')
    document.getElementById("two").removeAttribute("disabled");
};
Comment

PREVIOUS NEXT
Code Example
Javascript :: money separator in javascript 
Javascript :: navigation reset 
Javascript :: react native apk build 
Javascript :: discord js send dm to user 
Javascript :: window log scrollpostion 
Javascript :: javascript remove duplicate in two arrays 
Javascript :: await fetch in react 
Javascript :: javascript rupiah format 
Javascript :: javascript load multiple images 
Javascript :: p5.js change button position 
Javascript :: react redirect to url 
Javascript :: angular convert response to json 
Javascript :: Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 
Javascript :: javascript fill array with range 
Javascript :: last index array javascript 
Javascript :: are you sure you want to proceed click ok button javascript code 
Javascript :: force page to reload on back button 
Javascript :: javascript remove text from string 
Javascript :: last item in object javascript 
Javascript :: vue data 
Javascript :: js check if function exists 
Javascript :: javascript get keycode from char 
Javascript :: change padding javascript 
Javascript :: how to get array from items quantity 
Javascript :: js change button text 
Javascript :: how to detect clicks with javascript 
Javascript :: js find in array and remove 
Javascript :: call javascript function after div load 
Javascript :: clear session storage on refresh 
Javascript :: javascript submit a form with id 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =