```html contenteditable data-show-source="examples/02_getElementsByClassName2.html"
loading source...
```
[» Demo](examples/02_getElementsByClassName2.html)
```js fragment
$("#myId") // selects (one) element with the id "myId"
$(".myClass") // selects all elements with the class name "myClass"
$("div") // selects all elements of type "div"
$("div:first") // selects the first element of type "div"
$("div:odd") // selects odd "div" elements, zero-indexed
$("input:not(:checked)") // equals to
$("input").not(":checked")
```
Created by Johannes Hoppe | Print PDF | GitHub