JQuery-Disabling element in JQuery.

Ads
 

JQuery-Disabling element in JQuery.

How can we enable/disable an element in JQuery ?

View Answers

December 4, 2010 at 5:48 PM

For enabling/disabling element,you can set the 'disabled' attribute to true or false:

//Disable element
$('#element1').attr('disabled', true);
//Enable element
$('#element1').attr('disabled', false);

Ads









Related Tutorials/Questions & Answers:
JQuery
JQuery  how to use jquery
Jquery
Jquery  I am new to Jquery. Can anyone please tell me how to use jquery plugins in html
Advertisements
jquery
jquery  What are the Jquery similarities or difference with other java script libraries
JQuery
JQuery  How i begin JQuery and where i begin learning?   Please visit the following link: JQuery Tutorials Learn Jquery from the above link. Here you will get lot of examples with illustration
jQuery
jQuery  Hi, What is jQuery and how it is used to develop Web applications? Thanks
jquery
jquery  how to display the leaves taken or holidays of the year or half working days in a calendar in some colors to identify the days using jquery plugin
JQuery
JQuery  how to create jquery auto-complete textbox ? in which data come from database table?   Please visit the following link: http://www.roseindia.net/tutorial/jquery/autoSuggestTextbox.html   thank you
JQuery
, use jquery autocomplete
JQuery
using url of the doctors, use jquery autocomplete
jQuery Fading Method
jQuery fadind () methods used to fade in and out the elements visibility. jQuery offers various methods like fadeIn(), fadeOut(), fadeToggle() and fadeTo...: .fadeIn(): jQuery .fadeIn() method display the matched elements by fading
jQuery selectors
jQuery selectors       jQuery selectors In this tutorial we are discussing jQuery selectors. The jQuery selectors are one of the main feature in jQuery library
jQuery - jQuery Tutorials and examples
jQuery - jQuery Tutorials and examples       The largest collection of jQuery examples and jQuery Tutorials on the web. Learn and master jQuery from scratch. jQuery is nice
jQuery Demos
Selecting element using jQuery. Showing content of a file... with an element using 'bind' jQuery 'select' form... jQuery Demos and quick examples   
What is jQuery?
What is jQuery? jQuery is a multi-browser JavaScript library that makes the use of javascript in a website very easy. jQuery helps in wrapping many lines.... jQuery was released in the year 2006. It is an open-source software. jQuery's
jQuery Features
jQuery Features       jQuery have lot of functionalities but some of the key features are given below : Selection of DOM elements : The jQuery selector provide us
remove parent element JavaScript
remove parent element JavaScript  How to remove parent element in JavaScript
learn jquery
learn jquery   is it possible to learn myself jquery,ajax and json   Yes, you can learn these technologies by yourself. Go through the following links: Ajax Tutorials JSON Tutorials JQuery Tutorials
learn jquery
learn jquery   is it possible to learn myself jquery,ajax and json   Yes, you can learn these technologies by yourself. Go through the following links: Ajax Tutorials JSON Tutorials JQuery Tutorials
PHP and JQuery
PHP and JQuery  How to make validation using PHP and JQuery
jQuery Tutorials, jQuery Tutorial
jQuery Tutorials, jQuery Tutorial The jQuery tutorials listed here will help you in learning jQuery easily. We have given many articles and easy to understand examples to making learning path easier. These jQuery tutorials
Theming JQuery
styles. The jQuery UI CSS Framework points the role an element's role... Theming JQuery       Theming JQuery The jQuery widgets are designed
dynamic jquery statement
dynamic jquery statement  dynamic jquery statement
PHP and JQuery
PHP and JQuery  How i validate input fields' data entry using JQuery
ModuleNotFoundError: No module named 'element'
ModuleNotFoundError: No module named 'element'  Hi, My Python... 'element' How to remove the ModuleNotFoundError: No module named 'element... to install padas library. You can install element python with following command
protractor check if element exists
protractor check if element exists  Hi, We are working... to check if element exists in protractor framework? Thanks   Hi, There are methods protractor to check if element exists. You can use the following
jquery session handling
jquery session handling  What is session handling in JQuery
parser jquery css
parser jquery css  How to parser jquery in css
jQuery UI Interaction : Draggable
Using jQuery UI draggable plugin , you can cause certain element draggable... and drop this element, you need to incorporate jQuery UI Droppable... jQuery UI Interaction : Draggable   
jQuery Training
jQuery Training     jQuery Training for learn jQuery fast The jQuery training is designed to teach jQuery in 5 days. After taking our jQuery training you will be able to start
Passing array element
Passing array element  What about passing an element of an array? If I have array of objects and pass functionA(arr[2]); Then functionA() will get arr[2] as a value type or a reference type
PHP jQuery Example
PHP jQuery Example jQuery:  jQuery is a JavaScript library which accentuates interaction between JavaScript and HTML. Main features of jQuery are as follows: Ajax CSS manipulation DOM element Events Extensibilty

Ads