Mastering JavaScript: A Complete Programming Guide Including jQuery, AJAX, Web Design, Scripting and Mobile Application Development by White Michael B

Mastering JavaScript: A Complete Programming Guide Including jQuery, AJAX, Web Design, Scripting and Mobile Application Development by White Michael B

Author:White, Michael B. [White, Michael B.]
Language: eng
Format: epub
Published: 2019-04-04T16:00:00+00:00


jQuery Selectors

In this section, we will look at using jQuery to select HTML elements.

The most common use of JavaScript is to get or modify content or values of HTML elements on a page, followed by applying effects, such as show/hide, animation, etc. Before you can do any of this, you need to find your target HTML element and select it.

You could use a typical JavaScript approach, but it will be incredibly agonizing! This is where jQuery makes things wonderfully simple. One of the most powerful of all jQuery features is that it makes it easy to select DOM elements quickly.

Tip

jQuery offers support for almost every selector the CSS3 specifications define and it also includes its own selectors. The custom selectors provide the ability to enhance the selection of the HTML elements.

In the next couple of sections, we will look at the more common methods to select elements and what you can do with them using jQuery.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.