JQuery-Disabling element in JQuery.

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);









Related Tutorials/Questions & Answers:
JQuery-Disabling element in JQuery.
JQuery-Disabling element in JQuery.   How can we enable/disable an element in JQuery
JQuery-confirming exsistance of an element.
JQuery-confirming exsistance of an element.  Hi there, How do I test whether an element exists in jQuery?   You can check existance of an element in jQuery using length property of the jQuery collection
Advertisements
JQuery-event working new element
JQuery-event working new element  I want to know- why not an event(in JQuery) works on my created element through jQuery
Test hidden element using JQuery
Test hidden element using JQuery  Suppose i have an element which i... if that element is currently hidden or visible on the screen? Please provide code with your answer.   You can check the visibility of an element
Getting the ID of the element that fired an event using JQuery
friend In jQuery event.target always refers to the element that triggered...Getting the ID of the element that fired an event using JQuery  Hello sir I want to know-Is there any way to get the ID of the element that fires
Position one element relative to other using JQuery.
Position one element relative to other using JQuery.  Hello Sir In my web page, i have a hidden div which contains a toolbar-like menu. Also, i... of the placeholder element var pos = $("#placeholder").offset(); var width
JQuery
JQuery  hi there, I am just beginner for jQuery and i want to know-what is jQuery ? How it is better than JavaScript ?   jQuery... JavaScript : Each jQuery returns itself so you can chain them together(Chaining
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
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 - 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 email validation
jQuery Email Validation : jQuery "required email" is the method to validate or check email  if the element is empty (text input) or ..._TO_REPLACE_4 </script> Getting Started with jQuery "
JQuery url validation
jQuery url Validation : jQuery "required url" is the method to validate or check url if the element is empty (text input) or  wrong url type...;/script> Getting Started with jQuery "required url"
jQuery password validation
jQuery password Validation : jQuery "equalTo: "#password" " is the method to validate or check password if the element is empty (text input...; Getting Started with jQuery "equalTo: "#password"" :ADS_TO_REPLACE_1
jQuery required validation
jQuery required Validation: jQuery "required" is the method to validate or check  if the element is empty (text input) or unchecked (radio...;/option>. Getting Started with jQuery required :ADS_TO_REPLACE_1 In this example
jQuery bind event
jQuery bind event In this tutorial, we will discuss about how to bind multiple events with an element using jQuery. In this example, a paragraph binds with multiple events like click, mouseenter mouseleave,  dblclick etc using
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
Bind custom event with an element using 'bind'
Bind custom event with an element using 'bind' In this tutorial, we will discuss about how to bind a user define event with an element using 'bind ' function of jQuery. In this example ,  we are firing an user
Selecting element using jQuery.
Selecting element using jQuery In this tutorial , we will discuss about the different methods to select elements of html page. The jQuery has two ways... as a string to the jQuery constructor (eg. $("div > ul a"
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?
of jQuery library:ADS_TO_REPLACE_2 HTML/DOM manipulation DOM element...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
What is jQuery?
What is jQuery?       jQuery is great library for developing ajax based application. jQuery is great... applications. You can use jQuery to develop cool web 2.0 applications. jQuery
JQuery-Selecting class or ID
JQuery-Selecting class or ID  Hi Guys, I am new to JQuery. I am getting little trouble in selecting an item using class or ID in jQuery?   Given below code selects an element of id name "element1
jQuery Features
jQuery Features       jQuery have lot of functionalities but some of the key features are given below : Selection of DOM elements :ADS_TO_REPLACE_1 The jQuery selector
jQuery Tutorial
-in on the top of the JavaScript library. jQuery Features DOM element selections...jQuery Tutorial jQuery is a cross browser, java Script library created by ... more". It handles the client side scripting of HTML. jQuery simplifies 
remove parent element JavaScript
remove parent element JavaScript  How to remove parent element in JavaScript
Use of jQuery
Use of jQuery  What is the use of jQuery?   Hi, jQuery is JavaScript Ajax library. Developer is using it to create rich internet applications.ADS_TO_REPLACE_1 Read at jQuery Tutorial. Thanks
use of jquery
use of jquery  what is a jquery? what is the evalution of jquery?   Hello Friend, Please visit the following link:ADS_TO_REPLACE_1 JQuery Tutorials Thanks
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
JQuery Spinner
JQuery Spinner   I am working in JQuery and i want to create SPinner for getting Credit Card Expiry Date in the form of MM/yyyy . Will you Please help me How to create the Spinner . Thank you. Regards Arun
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
Ajax in jQuery
Ajax in jQuery  How ajax can be use in JQuery?   Given below the code for ajax in jquery: $(document).ready(function() { $('#form').submit(function(){ var number = $('#number').val(); $.ajax({type:"post",url
jquery session handling
jquery session handling  What is session handling in JQuery
parser jquery css
parser jquery css  How to parser jquery in css
XML root element
XML root element  Hi..... please tell me about that Can a root element type be explicitly declared in the DTD?ADS_TO_REPLACE_1 Thanks
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

Ads