Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enginooby-practice/jquery
https://github.com/enginooby-practice/jquery
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/enginooby-practice/jquery
- Owner: enginooby-practice
- Created: 2020-07-30T19:24:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T20:04:06.000Z (over 4 years ago)
- Last Synced: 2024-01-10T11:54:01.601Z (10 months ago)
- Language: HTML
- Size: 367 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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