$(document).ready(function() { });
$(function() { })();
<div class="parrent">
<span class="child"></span>
<div id="child"></span>
</div>
$('.parrent');
$('#child');
$('span');
$('.parrent').find('.child');
$('.parrent .child');
$('selector').each(funtion() { });
$('selector').filter(funtion() { });
$('selector').eq(index);
$('selector').html();
$('selector').text();
// value - optional parameter
$('selector').attr('attrName', value);
$('selector').prop('propName', value);
$('selector').addClass('newClass');
$('selector').removeClass('oldClass');
$('selector').toggleClass('toggledClass');
$('selector').hasClass('oldClass');
$('selector').on('event', function() { });
/*
click dblclick contextmenu
change blur
touchstart touchend touchmove
*/
$('selector').click(function() { });
$('selector').height();
$('selector').width();
$('selector').offset(); // => {top: ..., left: ...}
$('selector').position(); // => {top: ..., left: ...}
$.ajax({
type: ''
url: ''
}).done(function () { })
.fail(function () { });
$.get('path', params, callback);
$.post('path', params, callback);
$.getJSON('path', params, callback);