David Meador has Published 171 Articles

What is the difference between jQuery.bind() and jQuery.live() methods in jQuery?

David Meador

David Meador

Updated on 09-Dec-2019 11:01:57

106 Views

jQuery.bind() methodThe bind() method in jQuery attaches one or more event handlers for the selected elements.Note: The jQuery bind() method deprecated in jQuery.ExampleYou can try to run the following code to learn how to work with bind() method in jQuery:Live Demo $(document).ready(function(){     $("div").bind("click", function(){ ... Read More

How to add the previous element to current jQuery selection?

David Meador

David Meador

Updated on 09-Dec-2019 10:59:39

463 Views

To add the previous element to current jQuery selection, use the insertBefore() method.ExampleYou can try to run the following code to learn how to work with insertBefore() method:Live Demo $(document).ready(function(){     $("button").click(function(){         $("Demo text").insertBefore("p");     }); }); Insert This is a paragraph.

What do you understand by jQuery Traversing Siblings?

David Meador

David Meador

Updated on 09-Dec-2019 10:58:06

51 Views

jQuery traversing siblings  is traverse to find siblings of an elements using jQuery. To traverse sideways in DOM tree, use the following methods:siblings(): This returns all the siblings elements of the selected element.next(): This method returns the next sibling element of the selected element.nextAll(): This method returns all next sibling ... Read More

What is the jQuery destructive method end()?

David Meador

David Meador

Updated on 09-Dec-2019 10:00:12

181 Views

The jQuery end() method reverts the most recent destructive operation, changing the set of matched elements to its previous state right before the destructive operation.This is how you can use it, operations.end()ExampleYou can try to run the following code to learn about jQuery destructive method end(), Live Demo     ... Read More

What is the difference between Grep and Filter in jQuery?

David Meador

David Meador

Updated on 09-Dec-2019 09:58:26

696 Views

The grep() method finds an element and the filter() method returns elements matching a specific criteria.jQuery grep functionExampleThe grep() function is used to find an element of an array. You can try to run the following code to learn how to work with grep(), Live Demo   jQuery grep() ... Read More

How to locate all the descendant elements of a particular type of element?

David Meador

David Meador

Updated on 09-Dec-2019 07:17:53

59 Views

The find( selector ) method can be used to locate all the descendant elements of a particular type of elements. The selector can be written using any selector syntax.ExampleYou can try to run the following code to learn how to locate all the descendant elements of a particular type of ... Read More

How to get a set of elements containing all of the unique immediate children of each of the matched set of elements?

David Meador

David Meador

Updated on 09-Dec-2019 07:06:08

64 Views

The children( [selector] ) method gets a set of elements containing all of the unique immediate children of each of the matched set of elements.ExampleYou can try to run the following code to learn how to get a set of elements containing all of the unique immediate children of each ... Read More

How to setup jQuery on my web server?

David Meador

David Meador

Updated on 04-Dec-2019 07:07:54

1K+ Views

To run jQuery on your web pages, add the library file within a pair of tags. The location of the jQuery library file is added under the tags, which point to the location of the jQuery library file on the Web server. Here’s an example, The location of ... Read More

Storage Device Hierarchy

David Meador

David Meador

Updated on 30-Jul-2019 22:30:23

3K+ Views

Computer storage has components that store computer data. The different storage types in the storage hierarchy are as follows: Primary Storage This is also known as the main memory and is the memory directly accessible by the CPU. All the instructions are executed in the main memory by CPU ... Read More

Layered Operating System

David Meador

David Meador

Updated on 30-Jul-2019 22:30:23

13K+ Views

The operating system is split into various layers In the layered operating system and each of the layers have different functionalities. This type of operating system was created as an improvement over the early monolithic systems. Why Layering in Operating System? Layering provides a distinct advantage in an operating system. ... Read More

Advertisements