Rails 5 Jquery stops working on redirect
Rails 5 Jquery stops working on redirect So I'm working with Rails 5.1 to create a web app and I'm using a CSS checkbox hack to open a navigation menu. I have a button (on root_path) which, when clicked, uses Jquery to check the box from another area. It works when going to the page, but when I redirect to another page, it stops working. But the console still outputs true/false when I click the button logging whether the checkbox is checked or not. So the button functions seem to work on-click, but the checkbox doesn't show as checked. I've spent a lot of time playing with the jquery, turning off turbolinks on the home button which refreshes, etc. Curious if anyone has a way to get around this or if rails 5 is finicky with this stuff. Here is the snippet for the two buttons in _index.html.erb <div class="index__content--buttons"> <%= link_to("Find Out More", root_path, :class => "btn btn--primary", data: { no_turbolink: tr...