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.
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.