Friday, 15 March 2013

javascript - %output not showing for range slider in HAML -


I'm trying to set it so that the price can be shown next to my threshold slider, but I do not think so Get it to work.

I have seen, but because I am working with HAML because I am quite new, I can not seem to do this work.

At this time I have the code:

  .form-object = f.label: duration, 'trial duration',: class = & gt; 'Form-label' .col-sm-10 = f.range_field: duration,: class = & gt; 'Slider', in: 1 ... 100,: onchange = & gt; 'Show value (this.value)'% span # time 60: Javascript function show value (new vele) {document.getElementById ('time'). InnerHTML = newValue; }  

But the% duration does not appear, even in the generated HTML. I tried to output% with this but there was no difference ...

Any thoughts?


No comments:

Post a Comment