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.


There isn’t a Rails way to do it. That’s a job for JavaScript, as you
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