10 examples of 'jquery remove disabled' in JavaScript

Every line of 'jquery remove disabled' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
10function disable($element) {
11 $element.prop("disabled", "disabled");
12}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

377function toggleDisabled(ele){
378 ele = $(ele);
379 if(ele == null) {return;}
380 ele.disabled = !ele.disabled ;
381}
170function formDisabled(v){
171 loginDisabled(v)
172 loginUsername.disabled = v
173 loginPassword.disabled = v
174 if(v){
175 checkmarkContainer.setAttribute('disabled', v)
176 } else {
177 checkmarkContainer.removeAttribute('disabled')
178 }
179 loginRememberOption.disabled = v
180}
94function disable () {
95 $('textarea').addClass ( 'disabled' ).attr ( 'disabled', 'disabled' );
96}
85setDisabled(disabled) {
86 this.disabled = disabled;
87 this.$element.toggleClass(disabledClass, disabled);
88}
38function isDisabled(parent) {
39 while (parent && parent.parentNode !== null) {
40 if (parent.hasAttribute('disable-nw-menu')) {
41 return true;
42 }
43 parent = parent.parentNode;
44 }
45 return false;
46}
161function disable () {
162 $('.toolbar').addClass ( 'disabled' );
163}
58export function disableDelete(){
59 $(window).off("keydown.drawableDelete")
60}
31function disableAllElement(disabled) {
32 if (disabled) {
33 $loginDialog.options.bgclose = false;
34 } else {
35 $loginDialog.options.bgclose = true;
36 }
37 $loginEmail.attr("disabled", disabled);
38 $loginPassword.attr("disabled", disabled);
39 $loginRememberme.attr("disabled", disabled);
40 if (disabled) {
41 $registerLink.off("click");
42 } else {
43 $registerLink.off().on("click", showRegisterForm);
44 }
45 $loginBtn.attr("disabled", disabled);
46 $registerEmail.attr("disabled", disabled);
47 $registerPassword.attr("disabled", disabled);
48 $registerRePassword.attr("disabled", disabled);
49 $termofuse.attr("disabled", disabled);
50 $registerBtn.attr("disabled", disabled);
51}
13export function toggleBtnDisable(domSelector, disableStatus) {
14 // if disableStatus is false, enable.
15 // if disableStatus is true, disable.
16 $(domSelector).prop('disabled', disableStatus);
17}

Related snippets