All threads / How do I get the dropdown menu to show the selected after the page refreshes
Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I get the dropdown menu to show the selected after the page refreshes

JP asked in Javascript

Hello ~ I have been trying to figure out how to get the dropdown menu like the one in this forum to show the category after the page refreshes ~ I have been trying to do it using javascript and bootstrap ~ are there better ways to do it in rails? I have been stuck for hours :(

any guidance would be greatly appreciated.

Thank you!

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 66,029+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.