From edbb09e14e4299f669011598689bf33f19d63a9f Mon Sep 17 00:00:00 2001 From: Richard Macklin Date: Fri, 21 Feb 2020 10:10:34 -0800 Subject: [PATCH] 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. --- guides/source/working_with_javascript_in_rails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md index 8dbd97c701..dd7cd7335e 100644 --- a/guides/source/working_with_javascript_in_rails.md +++ b/guides/source/working_with_javascript_in_rails.md @@ -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