Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mathias valling 16 posts 126 karma points
    Dec 17, 2018 @ 12:08
    Mathias valling
    0

    Slider and values

    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

Please Sign in or register to post replies

Write your reply to:

Draft