What is jQuery?
To get the example code, run: git clone https://github.com/RemyNoulin/jquery.git
The code demonstrates:
- .html() to get or set html text for an element
- .val() to get or set the value of an element
- events click, dblclick and keyup
The code above changes the text of the button.
The code above gets and sets the value of the first input element.
The code above gets the value of the element targeted by the event.
The code above selects an element using an id.