Skip to content
Discussion options

You must be logged in to vote

Hi @cvanheer,

Do you want to get the specific X coordinate of the slider, or is the value of the slider sufficient? The value should be readable with document.querySelector("#jspsych-bucket-slider").value().

The X coordinate I'm less sure about. I'm not sure if the element can be selected directly (for methods like .getClientBoundingRect()) because it is a pseudo-element. This stackoverflow post looks like it might have some relevant answers.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cvanheer
Comment options

You must be logged in to vote
0 replies
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