Answer the question
In order to leave comments, you need to log in
How to check if JS is enabled in Rails?
Hello, tell me how to check if a user has JAvascript enabled in RoR?
There is a form that should be displayed if js does not work. And if it works, then the form appears in a pop-up window. Please help me make this happen.)
Answer the question
In order to leave comments, you need to log in
For rails, it doesn't matter. Make body class="no-js" and remove this class from the body in javascript. then make the form display:none, and for the form that is inside the .no-js class, make display:block;
and done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question