December 2013
Intermediate to advanced
384 pages
9h 54m
English
$("#notify").offsetParent(); //selects the element with id="notify" and then selects //the ancestor that is used to position that element
The .offsetParent() method returns a jQuery object representing the closest ancestor element that has a CSS position attribute of relative, absolute, or fixed. This allows you to get the element used for positioning, which becomes critical when you need to get the size of the position container.
Read now
Unlock full access