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");
};
Also in JavaScript:
- vue-sfc-rollup external dependency
- jQuery Aniview
- javascript object read only
- how to use a function from another file in javascript
- javascript repeat each second
- Material-ui Adb icon
- new date() javascript
- remove appended element jquery
- how to enter javascript in html
- javascript percent to int
- Programação web com Node e Express Beneficiando-se da stack JavaScript
- redirect with javascript
- jspdf cdn
- jquery wait n seconds
- push javascript
- javascript regex single line
- faker.js lorem
- starting with react router
- javascript loop through array backwords
- check checkbox based on value using jquery
- jquery how to get form value event.target
- js output html
- how to have a function inside useeffect
- javascript split and trim