Show the value of a range field #803

Closed
sebfie opened this Issue Feb 16, 2012 · 5 comments

2 participants

@sebfie

Hello,

I am using your range field, but i want to display the value on an other input/div and change the value when we slide. How can i do that?

Thank you.

@justinfrench
@sebfie

Ok, and how can i put html in the :hint attribute?

@justinfrench

@Ditchou what have you tried? Come on, I'm not here to hold your hand with everything!

f.input :foo, :as => :bah, :hint => "<span>Hello</span>".html_safe

That should work. For general questions, please use the Google group or Stack Overflow. Closing this one for now!

@sebfie

I tried that, but my html was escaped. Thank you for help !

@justinfrench

@Ditchou did you try it with the .html_safe on the end? That really should work. Can you show your code please so I don't have to keep guessing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment