Forums

This topic is locked

showing the value of dmxSlider but not in a text box

Posted 23 Apr 2013 04:51:50
1
has voted
23 Apr 2013 04:51:50 Jim Elliott posted:
Personally I think showing the value of a slider in a text box is not the nicest thing to do. Users get confused and start typing.

As jQuery will already be on the page it is simple to a div where you want the result to be shown


<div id="valuediv" align="center"></div>


and then add a custom event to the handle moving event and pass ##value## to your event:

SetValueDiv(##value##) 


Now write a simple javascript function to show the value in the div with jQuery:

function SetValueDiv(theval)
{
$("#valuediv").text(theval);
}


and that's it.





Reply to this topic