Home Answers Viewqa JavaScriptQuestions JQuery-Disabling element in JQuery.

 
 


BikrantSingh
JQuery-Disabling element in JQuery.
1 Answer(s)      2 years and 6 months ago
Posted in : JavaScript Questions

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 Pages:
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
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
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
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
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... to understand the concept. Thanks in advance   Dear friend In jQuery
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... showMenu = function(ev) { //get the position of the placeholder element var
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 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 Demos
Selecting element using jQuery. Showing content of a file... with an element using 'bind' jQuery 'select' form... jQuery Demos and quick examples   
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 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
Theming JQuery
styles. The jQuery UI CSS Framework points the role an element's role... Theming JQuery       Theming JQuery The jQuery widgets are designed
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 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 
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
What is jQuery?
are the features of jQuery DOM element selections functions DOM traversal... What is jQuery?       jQuery is great library for developing ajax based application. jQuery is great
Form Element Selector
Form Element Selector       Form Element Selector Form element selector is used to select the element of form like button, input, image checkbox, password, radio
JQuery
JQuery  how to use jquery
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 ... with jQuery "required email" : In this example there are the following
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 : In this example
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 "
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""
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
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
jquery  What are the Jquery similarities or difference with other java script libraries
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
jQuery CSS Selector
jQuery CSS Selector       jQuery CSS Selector In this section we are learning about the jQuery CSS Selector. The CSS Selectors is the powerful API provided
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
Getting Started with jQuery
jQuery: jQuery:  jQuery is a JavaScript library which accentuates interaction between JavaScript and HTML. jQuery helps programmers to keep the program simple and concise. jQuery library simplifies the process of traversal
jQuery
jQuery  Hi, What is jQuery and how it is used to develop Web applications? Thanks
jQuery UI effects
jQuery UI effects       jQuery UI effects effects.core.js The jQuery UI effects depends heavily on this file  This file is utilizes
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 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 Hello World alert
jQuery Hello World alert example    ... display "Hello World" alert box using jQuery. This application.... In this example you will learn how to write JavaScript using jQuery. When
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 UI Interaction : Selectable
jQuery UI Interaction : Selectable       jQuery UI Interaction : Selectable Using jQuery Selectable plug-in , you can  make a group of element
JQuery
, use jquery autocomplete
jQuery UI Interaction : Droppable
draggable element, a jQuery object. ui.helper - current draggable helper... jQuery UI Interaction : Droppable       jQuery UI Interaction : Droppable
JQuery
using url of the doctors, use jquery autocomplete
jQuery UI Widget : Slider
jQuery UI Widget : Slider       jQuery UI Widget : Slider The jQuery UI... as : $("#slider").slider(); here 'slider' is the div element
jQuery Utility Functions
jQuery Utility Functions      In this section we are discussing about jQuery Utility Functions... these funtions very frequently while writing your jQuery application. Here is the list
jQuery UI Widget : Progressbar
jQuery UI Widget : Progressbar       jQuery UI Widget : Progressbar... to place a progress bar inside a element like div : $("
jQuery UI Widget : Dialog
jQuery UI Widget : Dialog       jQuery UI Widget : Dialog This widget...;). To create a dialog box containing text of a element like div, we use
Understanding jQuery statement chaining
Understanding jQuery statement chaining       Understanding jQuery statement chaining JQuery provide statement chaining which can reduce the length of the code
jQuery UI Utility : Position
jQuery UI Utility : Position       jQuery UI Utility : Position... to the window, document, a particular element, or the cursor/mouse. It do
jQuery UI Interaction : Sortable
jQuery UI Interaction : Sortable       jQuery UI Interaction : Sortable Using jQuery sortable plug-in , you can sort selected element by mouse drag
jQuery change event
jQuery change event In this tutorial , we will discuss about 'change' event of jQuery. In given below example ,the change event is fired when there is change in the element (on which event is set).When the second option
jQuery "height" method
jQuery "height" method In this tutorial ,we will discuss about "height" method of jQuery. The difference between .css('height'...). The .height() method is recommended when an element's height needs

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.