August 2016
Beginner to intermediate
717 pages
15h 24m
English
In this chapter, we use jQuery to make AJAX requests. Before using jQuery, let's understand its basics.
CSS selectors used in style sheets can effectively retrieve an item with very little code. This is a feature that is so interesting that it is implemented in the HTML5 Selector API with the following syntax:
item = document.querySelector('tag#id_content');jQuery also allows us to use CSS selectors. To do the same thing with jQuery, you must use the following syntax:
item = $('tag#id_content');At the moment, it is better to use jQuery than the Selector API because jQuery 1.x.x guarantees great compatibility with older browsers.
It is possible to get back the HTML code between two tags ...
Read now
Unlock full access