Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enginooby-practice/jquery


https://github.com/enginooby-practice/jquery

Last synced: about 6 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Setup
- Option 1: Embedded jQuery from Google Libraries (recommend for production)
[[URL](https://developers.google.com/speed/libraries)]
- Option 2: Download jQuery script to use locally (prefer compressed/minified version)

# Main
### Object Manipulation
- ```$("")```: select element(s) of the selector
- ```$(this)```: select element(s) invoking function
- Basic manipulation for element
[[basic-manipulation.html]()]
- ```click()``` = ```onclick```
- ```hover()``` = ```onmouseover```
- ```html()```: get content
- ```html("")```: set content
- ```attr("", "")```: set value for attribute
- ```css("", "")```: set value for style property
- ```css("")```: get value of the style property

### Animation
- [Fading]()
- ```fadeOut()``` and ```fadeIn()```
- ```fadeOut("slow")```
- ```fadeOut(")```: execute callback function right after fading out
- ```toggle()```
- [Animation]()
- ```animate({)```
- Support callback function
- [AJAX]()
- ```$.get("", )```: get data from url file the execute function (with parameter is the retrieved data)
- ```$.ajax("").done().fail()```
- [Regular expression]()
- ```.match()```: return content(s)/null
- ```.test()```: return true/false
- ```//```: return first matched content (sensitive)
- ```//i```: return first matched content (insensitive)
- ```//ig```: return all matched contents (insensitive)

### jQuery UI
- Setup
- ``````
- ``````
- ``````
- [API documentation](https://api.jqueryui.com/)

# Notes - Tips
- AJAX does not work on local files