// Can use string for selector
$('ul');
// Or some node
$(window);
$('ul li').each(function (el, i) {
// do something
});
// Set
$('ul').css('color', 'red');
$('ul').css({
'color': 'red',
'background-color': 'yellow'
});
// Get
$('ul').css('color');
// Return text of each li
$('li').text();
// Set text for each li
$('ul').text('text');
// Return inner html of each li
$('li').html();
// Set inner html for each li
$('ul').html('text');
// Return collection of next elements of each li
$('li').next();
// Return collection of prev elements of each li
$('li').prev();
// Return height of li
$('li').outerHeight();
// Given the margins
$('li').outerHeight(true);
// Return width of li (given the margins)
$('li').outerWidth();
// Given the margins
$('li').outerWidth(true);
// Remove each li
$('li').remove();
// Position
$('li').position();
// Position relative to viewport
$('li').offset();
// Insert html in each li at the beginning
$('li').prepend('<div class="block"></div>');
// Insert html in each li at the end
$('li').append('<div class="block"></div>');
// Get
$('li').scrollTop();
$(window).scrollTop();
// Set
$('li').scrollTop(100);
$(window).scrollTop(100);