Clear text field with a button

Hi all,

I want to clear a text field by pressing a button, I get it work using
Javascript but I want to know if there’s a Rails way to do it.

Thanks,
Nahuel.

There isn’t a Rails way to do it. That’s a job for JavaScript, as you
have
already found.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs