Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All
I'm stuck with an issue, I have a
<input type="range" id="sliderValue" min="1" max="100" value="50" class="slider">
I need a way to get the Value from this slider, so i can add it to my model and make some magic works.
I have tried to pull it out with a onchange="updateTextInput(this.value)
and then run
<script> function updateTextInput(val) { document.getElementById('textInput').value = val; //VM.UserResult = val; } </script>
but whenever i try to get back from the script to model i get compilation errors. also tried to see if the umbraco.slider was of any use sadly no luck
Really hope someone can guide me abit since this frontend stuff is all new to me
Cheers Mathias
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Slider and values
Hi All
I'm stuck with an issue, I have a
I need a way to get the Value from this slider, so i can add it to my model and make some magic works.
I have tried to pull it out with a onchange="updateTextInput(this.value)
and then run
but whenever i try to get back from the script to model i get compilation errors. also tried to see if the umbraco.slider was of any use sadly no luck
Really hope someone can guide me abit since this frontend stuff is all new to me
Cheers Mathias
is working on a reply...