Get the name and value of the first <p> element:
The get() method gets the DOM elements specified by the selector.
| Parameter | Description |
|---|---|
| index | Optional. Specifies which of the matching elements to get (by index number) |
Your message has been sent to W3Schools.