Use arrow keys (left and right) to navigate through slides and bullets in this presentation!!!


| Type | Example |
|---|---|
| SIMPLE | $("#MainDiv") |
| OR | $("p, ul") |
| AND | $(".ClassA.ClassB") |
| CHILDREN | $("#MainDiv > p") |
| SUBELEMENTS | $("#MainDiv a") |
| ADJACENT | $(".NoMargins + p") |
| FOLLOWER | $("p.FirstParagraph ~ p) |
See documentation on selectors and filters at docs.jquery.com/Selectors
| Example | What It Does |
|---|---|
| css(property) | Returns the value of the named CSS property of the first matched element |
| css(property, value) | Sets the value of the named CSS property of all matched elements to the value specified |
| Function | What It Does |
|---|---|
| addClass(classname) | Adds specified class(es) to all matched elements |
| removeClass(classname) | Removes specified class(es) from all matched elements |
| hasClass(classname) | Returns boolean (true/false) value for all matched elements |
| toggleClass(classname) | Adds class like "addClass" if class not present and removes the class like "removeClass" if it is already present |
| Function | What It Does |
|---|---|
| html() | Gets or sets the HTML content of matched elements |
| text() | Gets or sets the text content of matched elements |
| attr() | Gets or sets an attribute of matched elements |
| empty() | Removes all child nodes from matched elements |
| remove() | Removes matched elements and any nodes inside those elements |
| clone() | Makes a copy of selected elements that can then be inserted into the DOM elsewhwere |
| Function | What It Does |
|---|---|
| append() | Appends content to the inside of matched elements |
| appendTo() | Removes matched elements and appends them to inside of specified target |
| prepend() | Prepends content to the inside of matched elements |
| prependTo() | Removes matched elements and prepends them to inside of specified target |
| Function | What It Does |
|---|---|
| after() | Inserts content after each of the matched elements |
| before() | Inserts content before each of the matched elements |
| insertAfter() | Removes matched elements and inserts them after each of the specified elements |
| insertBefore() | Removes matched elements and inserts them before each of the specified elements |