Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Snippet Listing

Kyle Spearrin edited this page · 8 revisions
Type Shortcut Description
HTML jq A script tag with a $(document).ready() shortcut.
HTML jqScript A script tag with a jQuery src.
HTML jqScriptCdnGoogle A script tag with a jQuery src using Google's CDN.
HTML jqScriptCdnMs A script tag with a jQuery src using Microsoft's CDN.
HTML jqScriptMin A script tag with a jQuery src and a $(document).ready() shortcut.
HTML jqScriptUiCdnGoogle A script tag with a jQuery UI src using Google's CDN.
HTML jqScriptValidateCdnMs A script tag with a jQuery validation plugin src using Microsoft's CDN.
HTML jqScriptValidateUnobtrusiveCdnMs A script tag with a jQuery unobtrusive validation plugin src using Microsoft's CDN
JavaScript func An anonymous function.
JavaScript jqAfter Insert content, specified by the parameter, after each element in the set of matched elements.
JavaScript jqAjax Perform an asynchronous HTTP (Ajax) request.
JavaScript jqAjaxAspNetWebService Perform an asynchronous HTTP (Ajax) request to a ASP.NET web service.
JavaScript jqAppend Insert content, specified by the parameter, to the end of each element in the set of matched elements.
JavaScript jqAppendTo Insert every element in the set of matched elements to the end of the target.
JavaScript jqAttrGet Get the value of an attribute for the first element in the set of matched elements.
JavaScript jqAttrRemove Remove an attribute from each element in the set of matched elements.
JavaScript jqAttrSet Set one or more attributes for the set of matched elements.
JavaScript jqAttrSetFn Set one or more attributes for the set of matched elements.
JavaScript jqAttrSetObj Set one or more attributes for the set of matched elements.
JavaScript jqBefore Insert content, specified by the parameter, before each element in the set of matched elements.
JavaScript jqBind Attach a handler to an event for the elements.
JavaScript jqBindWithData Attach a handler to an event for the elements.
JavaScript jqBlur Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
JavaScript jqChange Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
JavaScript jqClassAdd Adds the specified class(es) to each of the set of matched elements.
JavaScript jqClassRemove Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
JavaScript jqClassToggle Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence.
JavaScript jqClassToggleSwitch Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
JavaScript jqClick Bind an event handler to the "click" JavaScript event, or trigger that event on an element.
JavaScript jqClone Create a deep copy of the set of matched elements.
JavaScript jqCloneWithEvents Create a deep copy of the set of matched elements.
JavaScript jqCssGet Get the computed style properties for the first element in the set of matched elements.
JavaScript jqCssSet Set one or more CSS properties for the set of matched elements.
JavaScript jqCssSetObj Set one or more CSS properties for the set of matched elements.
JavaScript jqDataGet Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
JavaScript jqDataRemove Remove a previously-stored piece of data.
JavaScript jqDataSet Store arbitrary data associated with the matched elements.
JavaScript jqDataSetObj Store arbitrary data associated with the matched elements.
JavaScript jqDie Remove event handlers previously attached using .live() from the elements.
JavaScript jqDieAll Remove event handlers previously attached using .live() from the elements.
JavaScript jqDieFn Remove event handlers previously attached using .live() from the elements.
JavaScript jqDocReady Function to execute when the DOM is fully loaded.
JavaScript jqDocReadyShort Function to execute when the DOM is fully loaded.
JavaScript jqEach A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
JavaScript jqEachElement Iterate over a jQuery object, executing a function for each matched element.
JavaScript jqEmpty Remove all child nodes of the set of matched elements from the DOM.
JavaScript jqFadeIn Display the matched elements by fading them to opaque.
JavaScript jqFadeInFull Display the matched elements by fading them to opaque.
JavaScript jqFadeOut Hide the matched elements by fading them to transparent.
JavaScript jqFadeOutFull Hide the matched elements by fading them to transparent.
JavaScript jqFadeTo Adjust the opacity of the matched elements.
JavaScript jqFadeToFull Adjust the opacity of the matched elements.
JavaScript jqFind Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
JavaScript jqFocus Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
JavaScript jqGet Load data from the server using a HTTP GET request.
JavaScript jqGetJson Load JSON-encoded data from the server using a GET HTTP request.
JavaScript jqGetScript Load a JavaScript file from the server using a GET HTTP request, then execute it.
JavaScript jqHasClass Determine whether any of the matched elements are assigned the given class.
JavaScript jqHeightGet Get the current computed height for the first element in the set of matched elements.
JavaScript jqHeightSet Set the CSS height of every matched element.
JavaScript jqHide Hide the matched elements.
JavaScript jqHideFull Hide the matched elements.
JavaScript jqHover Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
JavaScript jqHtmlGet Get the HTML contents of the first element in the set of matched elements.
JavaScript jqHtmlSet Set the HTML contents of each element in the set of matched elements.
JavaScript jqInnerHeight Get the current computed height for the first element in the set of matched elements, including padding but not border.
JavaScript jqInnerWidth Get the current computed inner width for the first element in the set of matched elements, including padding but not border.
JavaScript jqInsertAfter Insert every element in the set of matched elements after the target.
JavaScript jqInsertBefore Insert every element in the set of matched elements before the target.
JavaScript jqKeyDown Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
JavaScript jqKeyPress Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
JavaScript jqKeyUp Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
JavaScript jqLoadGet Load data from the server and place the returned HTML into the matched element.
JavaScript jqLoadPost Load data from the server and place the returned HTML into the matched element.
JavaScript jqMap Translate all items in an array or object to new array of items.
JavaScript jqMouseDown Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
JavaScript jqMouseEnter Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
JavaScript jqMouseLeave Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
JavaScript jqMouseMove Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
JavaScript jqMouseOut Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
JavaScript jqMouseOver Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
JavaScript jqMouseUp Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
JavaScript jqNamespace A namespace template. ref: http://enterprisejquery.com/2010/10/how-good-c-habits-can-encourage-bad-javascript-habits-part-1/
JavaScript jqOffsetGet Get the current coordinates of the first element, or set the coordinates of every element, in the set of matched elements, relative to the document.
JavaScript jqOffsetParent Get the closest ancestor element that is positioned.
JavaScript jqOn Attach an event handler function for one or more events to the selected elements.
JavaScript jqOne Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
JavaScript jqOneWithData Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
JavaScript jqOuterHeight Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without "px") representation of the value or null if called on an empty set of elements.
JavaScript jqOuterWidth Get the current computed width for the first element in the set of matched elements, including padding and border.
JavaScript jqPlugin Plugin template.
JavaScript jqPosition Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
JavaScript jqPost Load data from the server using a HTTP POST request.
JavaScript jqPrepend Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
JavaScript jqPrependTo Insert every element in the set of matched elements to the beginning of the target.
JavaScript jqRemove Remove the set of matched elements from the DOM.
JavaScript jqRemoveExp Remove the set of matched elements from the DOM.
JavaScript jqReplaceAll Replace each target element with the set of matched elements.
JavaScript jqReplaceWith Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
JavaScript jqResize Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
JavaScript jqScroll Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
JavaScript jqScrollLeftGet Get the current horizontal position of the scroll bar for the first element in the set of matched elements.
JavaScript jqScrollLeftSet Set the current horizontal position of the scroll bar for each of the set of matched elements.
JavaScript jqScrollTopGet Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.
JavaScript jqScrollTopSet Set the current vertical position of the scroll bar for each of the set of matched elements.
JavaScript jqSelect Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
JavaScript jqSelectTrigger Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
JavaScript jqShow Display the matched elements.
JavaScript jqShowFull Display the matched elements.
JavaScript jqSlideDown Display the matched elements with a sliding motion.
JavaScript jqSlideDownFull Display the matched elements with a sliding motion.
JavaScript jqSlideToggle Display or hide the matched elements with a sliding motion.
JavaScript jqSlideToggleFull Display or hide the matched elements with a sliding motion.
JavaScript jqSlideUp Display the matched elements with a sliding motion.
JavaScript jqSlideUpFull Display the matched elements with a sliding motion.
JavaScript jqSubmit Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
JavaScript jqSubmitTrigger Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
JavaScript jqTextGet Get the combined text contents of each element in the set of matched elements, including their descendants.
JavaScript jqTextSet Set the content of each element in the set of matched elements to the specified text.
JavaScript jqToggle Display or hide the matched elements.
JavaScript jqToggleFull Display or hide the matched elements.
JavaScript jqToggleSwitch Display or hide the matched elements.
JavaScript jqTrigger Execute all handlers and behaviors attached to the matched elements for the given event type.
JavaScript jqTriggerHandler Execute all handlers attached to an element for an event.
JavaScript jqTriggerHandlerWithData Execute all handlers attached to an element for an event.
JavaScript jqTriggerWithData Execute all handlers and behaviors attached to the matched elements for the given event type.
JavaScript jqUnbind Remove a previously-attached event handler from the elements.
JavaScript jqUnbindAll Remove a previously-attached event handler from the elements.
JavaScript jqUnload Bind an event handler to the "unload" JavaScript event.
JavaScript jqValGet Get the current value of the first element in the set of matched elements.
JavaScript jqValSet Set the value of each element in the set of matched elements.
JavaScript jqWidthGet Get the current computed width for the first element in the set of matched elements.
JavaScript jqWidthSet Set the CSS width of each element in the set of matched elements.
JavaScript jqWrap Wrap an HTML structure around each element in the set of matched elements.
JavaScript jqWrapAll Wrap an HTML structure around all elements in the set of matched elements.
JavaScript jqWrapInner Wrap an HTML structure around the content of each element in the set of matched elements.
Something went wrong with that request. Please try again.