Skip to content
Discussion options

You must be logged in to vote

Thank you! I decided to go a slightly different route since I have multiple sliders and wanted them all to appear on a single page.
JS

 function activatevas(id){
      document.getElementById(id).classList.remove('notclicked');
    }

CSS

    input.notclicked[type=range]::-webkit-slider-thumb {
      visibility: hidden;
    }
    input.notclicked[type=range]::-moz-range-thumb {
      visibility: hidden;
    }
    input.notclicked[type=range]::-ms-thumb {
      visibility: hidden;
    }

HTML (inside a survey_html object)

<input type="range" min="0" max="100" step="1.0" value="-1" name="NA01" id="NA01" class="jspsych-slider notclicked" onclick="activatevas('NA01')">

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@becky-gilbert
Comment options

Answer selected by mrzdcmps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants