Ask A Question

Notifications

You’re not receiving notifications from this thread.

Trying to do an input in a form where it will change while I am introducing characters

Sebastián Aristizábal asked in General

How can I do that an input in a simple_form_for changes while I am introducing a value, and the input comes with the $ by default, for example, I have the number 1000000, and while I am introducing this value it will get the comma every time that it must be, like this $1,000,000. I need to use Stimulus.

Reply
Join the discussion
Create an account Log in

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

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

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

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

    © 2023 GoRails, LLC. All rights reserved.