<div dir="ltr">Follow up to my previous question.<div><br></div><div>Using the coding below, I can get a slider to appear in my problem. However, the script is not type="loncapa". I would like to be able to get the slider bar response and save it in a variable that I can use elsewhere in the problem. Also, I would like to be able to store the students' confidence levels for research reasons.</div><div><br></div><div>Thanks,</div><div>Sally</div><div><br></div><div>Code:</div><div><part id="p3"><br><br><p>How confident are you that your answer is correct? Move the slider bar to the right to indicate high confidence (100) and to the left to indicate low confidence (1).</p><br><input type="range" min="1" max="100" value="50" id="myRange"></input> <br><p>Your confidence is <span id="x"></span></p><br><br><br><script><br>var slider = document.getElementById("myRange");<br>var output = document.getElementById("x");<br>output.innerHTML = slider.value;<br><br>slider.oninput = function() {<br>  output.innerHTML = this.value;<br>}<br></script><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 2:32 PM Sally S Hunnicutt <<a href="mailto:sshunnic@vcu.edu">sshunnic@vcu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Has anyone developed a slider question as a type of question? For example, I would like to ask students to give their confidence, using a slider bar, that the question they have answered is the correct answer.</div><div><br></div><div>Thanks,</div><div>Sally Hunnicutt</div><div>VCU</div></div>
</blockquote></div>