Change helper to js/coffee


I have:


This returnes a class to alter the background-color, but only on reload.
As the page is not submitted(ajax) on entry new values, I want to change
this helper to a js/coffee function so if val 2 > val 1
the background color changes.

How to approch that?

Thanks for support

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