Avoid implying that `#results` selector will only match a `div` element

The sample code above this sentence uses the selector `#results` which
will match any element with the `id` attribute of `results`, but the
sentence was previously implying that it had to be specifically a `div`
element.
This commit is contained in:
Richard Macklin 2020-02-21 10:10:34 -08:00
parent 8dca5162f9
commit edbb09e14e
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ fetch("/test")
});
```
This code fetches data from "/test", and then appends the result to the `div`
This code fetches data from "/test", and then appends the result to the element
with an id of `results`.
Rails provides quite a bit of built-in support for building web pages with this