Description:
The siblings( [selector] ) method gets a set of elements containing all of the unique siblings (родные братья) of each of the matched set of elements.
Syntax:
Here is the simple syntax to use this method:
| selector.siblings( [selector] ) |
Parameters:
Here is the description of all the parameters used by this method:
· selector: This is optional selector to filter the sibling Elements with.
$that.siblings();
_____________________________________________________________________________________
Html()
$myElement.html()
It will get and return the current html contents of the selected element. But called with a string argument,
like this: $myElement.html("<b>Hi</b>");It will set the html content of the selected element to the string (in this case, 'Hi'). Ex.:
Write a function fillHTML() that takes two jQuery objects. It should set the html of the first one to the html of the second one.
function fillHTML($sink,$source) {
$sink.html($source.html());
}
_____________________________________________________________________________________
Height() и width()
$element.height(50) will
set the height to 50 pixels (pixels are the default unit).
Повернуть на 90 градусов:
function rotate($that) {
//swap the height and width attributes
//of $that using .height and .width;
var $x = $that.height();
$that.height($that.width());
$that.width($x);
}
_____________________________________________________________________________________
Css()
$myElement.css('margin-left',20)
http://www.codecademy.com/ru/courses/basic-jquery/3#!/exercises/2

_____________________________________________________________________________________