Home>
We are creating a Ruby on Rails web service on Cloud9.
This time, I wanted to use jQuery and implemented a simple function as a trial.
When I run "Rails server" on Cloud9 and check the Preview, it works fine, but when I deploy it on Heroku and check it, I can access the page, but jQuery does not work.
What are the possible causes?
$(function () {
$('.top-message'). css ('font-size', '20px');
});
What I tried
bundle exec rake assets: precompile
I tried deploying after doing, but it didn't work.
-
Answer # 1
Related articles
- javascript - jquery setinterval doesn't work
- javascript - jquery doesn't work with loading scrit tag in bootstrap
- javascript - [jquery fullcalendar] dayclick doesn't work
- i want to set an image in the input tag with javascript (jquery)
- javascript - jquery i want to select a specific element
- javascript - click an image to move to the next image jquery (mail order site product details screen)
- javascript - quotation escape process doesn't work
- javascript - iterative processing does not work with jquery
- button to change html css style doesn't work (javascript)
- javascript - lightbox plus doesn't work
- javascript - perfect-scrollbar doesn't work
- javascript - it doesn't move when i press the button
- javascript - [jquery] how to raise an event both when loading and scrolling
- javascript - html/css copy code doesn't work
- javascript - i'm writing a script with jquery, but i can't enclose it in single quotes
- javascript - debugging the prependto method in jquery
- javascript - i tried to create a calculator app on the web, but it doesn't work
- javascript doesn't work
- javascript - coexistence of jquery refinement and pagination
Related questions
- javascript - [rails] css and js do not respond when material-dashboard is installed
- javascript - i want to show/hide the element by selecting option of select
- javascript - i want to make an array of the elements obtained by clicking
- javascript - i want to display the latest instagram articles on the site
- javascript - how to get multiple jquiry radio button values
- javascript - how to insert a partial template on a ruby on rails js file
- javascript - display image preview on tweet post edit page
- javascript - i want to get the characters from the textarea with the added line and display them
- javascript - drawer does not work properly
Check if there is an error in the console of the development tool of the browser.
Approximately one of the following.
Wrong read description, wrong path
I forgot to upload
I think there is a read description, but you can also try accessing the URL of the jQuery you are using directly from your browser.
Please refer to the article.
9 items to check when jQuery does not work