- JavaScript framework
- Multi-browser
- CSS and DOM manipulation
- Document Object Model
- jQuery object $
- Objects and functions
- Always close parentheses and brackets ( ) { }
- Always put a semicolon at the end of the statement
$('.ancestor .descendant')
$('.parent > .child')
AND $('.one.two')
OR $('.one, .two, .three')
- Refining
$('p').not('.ignore')
$('p:not(.ignore)')
$('ul li').first()
$('.child').closest('.ancestor')
$('.item').next('.sibling')
{*
*}
$('.my-box').animate({
left: '500px',
top: '400px',
width: '400px',
height: '80px',
}, 10000, function() {
$('.my-box').fadeOut();
});
- Interact with the server in the background
- Click links, submit forms, refresh data, etc.
- without reloading the page
- Plugins
- jQueryUI, Twitter Bootstrap
- IDE syntax highlighting
- Console
console.log('message');
-