In this tutorial, you will learn how to remove an attribute using jQuery.
Using the removeAttr() method we can remove the attribute in jQuery.
Let us understand this with the help of an example, In this example, we will remove the title attribute using the removeAttr() method. we need to pass the 'title' as a parameter to this method, for example, removeAttr('title);
Tutorial By - J John Hart
In this tutorial, you will learn how to set multiple attribute values using jQuery.
Let us understand with the help of an example, In this example, we will set the title, style, and name attribute.
Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn how to get or retrieve the attribute value using jQuery.
by using the attr() method we can get the attribute value, we have to pass the key to the attr() method, for example, you want to get the title value of the div, you have to use attr('title').

Let us understand the attr() using an example
Tutorial By - J John Hart
In this tutorial, you will learn how to get the data attribute value using jQuery. Using data() method you can set or get the data attribute in jQuery. Let us understand the data attribute using an example.

Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn how to set the data attribute value using jQuery. Using data() method you can set or get the data attribute in jQuery. Let us understand the data attribute using an example.
Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn how to set the attribute values using jQuery. To set the attribute using jQuery use attr() method. By using the attr() method we can also get the value of any attribute in jQuery. Suppose if you want to set the title of any div dynamically that time we can use attr() to set the title.
Let us understand the attr() method using an example.

Click on the Live Demo button to see the output.
Tutorial By - J John Hart
jQuery provides several methods to manipulate with DOM. By using DOM manipulation methods you can navigate and manage HTML elements. DOM manipulation using standard Javascript requires a bit more work than jQuery.
Tutorial By - J John Hart
In this tutorial, you will learn how to convert the JSON string to a JSON array in jQuery.
JSON.parse() method converts the JSON string to a JSON array.
Let us understand using an example.

Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn how to convert JSON object to string in jQuery.
JSON.stringify() method converts a JSON object or array into a JSON string.
Let us demonstrate using an example.
Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn the jQuery method chaining,
What is method chaining in jQuery?
How does the method chaining work in jQuery?
When will method chaining will not work?
Let us understand the method chaining with the help of an example.
Tutorial By - J John Hart
In this tutorial, you will learn how to use the $.each function in jQuery. $.each() function is used to iterate over the items. For each item, in the collection, the anonymous function is called. The index of the element and the element itself are passed to the anonymous function.
Syntax:
$("HTML element").each(function(index,element){
alert(index + ' - ' $(element).text());
});
Let us demonstrate the $.each() function using example.
Tutorial By - J John Hart
By using the removeAttr() jQuery method, you can remove the disabled attribute of the HTML element.
Click on the Live Demo button to see the output.
Example: Remove the disabled attribute of input elements.
Question By - J John Hart
In this tutorial, you will learn how to select the disabled elements in jQuery.
Syntax:
$(":disabled") - To select all the disabled elements
Let us see the example:
Click on the Live button to see the output.
Tutorial By - J John Hart
By using window.open() method in javascript you can open any url, to open the URL in new use tab _blank in the window.open() method as second parameter.
for example:
window.open('http://tutorialsmint.com','_blank');
Let us see the complete example:
Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn how to add !important to CSS property using jQuery.
In jQuery you can use the CSS() method to add the CSS to the selected element.
for example. $("#example").css("color","red");
this will add the color red to the #example id div, but if you use !important in css() method, it will not have any effect.
Tutorial By - J John Hart
In this tutorial, you will learn how to use the selected selector in jQuery. To select all selected options of a select element use :selected selector.
Let us understand the :selected using an example.

Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn how to get the text of the selected checkbox.
Click on the Live Demo button to see the output.

Let us see the below example to understand how to get the text of the selected checkbox.
Tutorial By - J John Hart
In this tutorial, you will learn how to select the values of the checkbox group. For example, suppose you have 2 groups of checkboxes on your page like Skills and Preferred Locations and you want to get the values of skills and preferred locations separately. If you use the $('input[type="checkbox"]: checked') you will get all checked checkboxes to combine, It will be hard for some time to manage, Let us understand using example how to get the separate values of checked checkboxes.
Tutorial By - J John Hart
In this tutorial, you will learn how to select the checked radio buttons or checkbox.
The :checked selector selects all checked checkboxes or radio buttons.
Let us understand with the help of an example.
Click on the Live Demo button to see the output.
Tutorial By - J John Hart
In this tutorial, you will learn the difference between $(input) and $(: input) selectors.

$(":input") selects all input, textarea, select and button elements.
$("input") selects only elements with an input tag.
Tutorial By - J John Hart
Tutorialsmint.com is a programming discussion portal. Here you can learn the programming languages or you can ask the questions related to the programming languages. If you like Tutorialsmint and would like to contribute, you can also write an article using Write an Article. See your article appearing on the Tutorialsmint main page and help other programmers to enhance their knowledge.