- General programming language concepts, of course.
//Include from local filesystem //Include from CDN
It basically let us select any element within DOM in two ways:
- Selection by elements tag name. jQuery traverse the entire DOM starting from browser window. Here is an example:
$('html') or, jQuery('html') //Selects the tag within the DOM. $('div') jQuery('div') //Selects any tags within the DOM.
- Selection by the CSS class (starting with .) or/and CSS ID (starting with #). Example:
$('.class, #ID', ...) or, jQuery('class, #ID, ...') //Selects all the elements with given class or/and ID within the DOM.
An ample number of online resources are available around the web which are good enough to start learning jQuery in details. I’m going to refer the best ones for you. Here sharing some useful resources links to get you started with jQuery:
Nevertheless, if you get any confusion while going through the tuts or get any question on mind, feel free to write to me. I’ll try my level best to reach you ASAP with assistive answer.