Offers an utilities to:
Very good for:
jQuery uses it as an shorthand for its main object, jQuery.
They are all the same: http://stackoverflow.com/questions/2662778/what-is-the-difference-between-these-jquery-ready-functions.
The only global exposed by the jQuery library. Everything is kept under it.
Most functions return a jQuery object, so this is why functions are chained in jQuery: a().b().c()
jQuery can select multiple objects via CSS selectors.
This is currently possible with
jQuery also has extensions to CSS selectors that look a lot like them, so watch out.
Such extensions are discouraged if an alternative exists, as they cannot benefit from direct
:checkbox selector: http://api.jquery.com/checkbox-selector/
which can be replaced by the standard
There are however some extensions which have no standard analogue like
which almost made it into CSS3.
Every jQuery method that operates or selects a collection of DOM elements returns another jQuery object, which possibly operates in a new selection, allowing to chain calls.
Restore selected elements to previous states.
Does not consider methods which did not change the selected methods.
It is for jQuery what
tee is for Bash.
Not possible: http://stackoverflow.com/questions/1224133/is-it-possible-to-do-value-in-jquery
prop are the in-memory IDL attributes,
attr is about the HTML, which may or may not modify the IDL attribute.
Has some cool out of the box functionality.
Drag resize any element.
Adds styleable handles to allow that.
4 edge handles, no corners. Resizing on the top breaks the UI, so you should disable it.
4 handles and corners:
Individual corners with
minWidth and max analogues:
Remove diagonal grip:
To style the elements, take a look at the generated divs with your browser's inspector.
divs, the grippies are put inside the div.
textarea, a container
is created that contains the text area and the grippie div.
This is probably done to overcome styling difficulties with textareas.
Perfectly styled down resizeable textarea:
TODO: the right border of the grippie does not appear.
TODO: how to get before::content to show? Where is it?
Good workaround: centered background image, possibly SVG with text. TODO: how to stretch the SVG text to that the equals sign = becomes very wide to be more visible?
Drag elements around to any position positions.
The space occupied by the element does not change.
Only the targeted tab links make tabs switch: linking to the fragment directly has no effect.
#tab-two. So they could at least have used use buttons with
attributes which doesn't take up the fragment...
The tabs must be inside the tabs container or else it fails:
To get remote content simply add the path to the
TODO: get working.
TODO: is it the same as the HTML event? http://api.jquery.com/category/events/event-object/
event.target is the bare
jQuery plugins often monkey-patch the jQuery object to add new methods to it.
Make the textarea automatically resize to fit content.