@munkacsimark
awesome post!
Is there a way to modify it to support multiple range inputs on the same webpage? It looks like adding additional range sliders does not pick up the special Chrome JS/styles dev-to-uploads.s3.amazonaws.com/up...
Hi @jasontipton
, thanks! 😁
The example was just for one input, there was only a document.querySelector() which returns one item. For handling multiple inputs you just need to select all of them with document.querySelectorAll() and apply handler on each of them.
I modified both examples to handle multiple items. 😊
@munkacsimark
found that the highlighted (--webkitProgressPercent) was not working in mobile (at least not in Chrome, I did not test the other mobile browsers). I was able to get it working though by adding to the JS.
@munkacsimark awesome post!
Is there a way to modify it to support multiple range inputs on the same webpage? It looks like adding additional range sliders does not pick up the special Chrome JS/styles
dev-to-uploads.s3.amazonaws.com/up...
Hi @jasontipton , thanks! 😁
The example was just for one input, there was only a
document.querySelector()which returns one item. For handling multiple inputs you just need to select all of them withdocument.querySelectorAll()and apply handler on each of them.I modified both examples to handle multiple items. 😊
@munkacsimark awesome solution! that makes sense, thank you!
@munkacsimark
found that the highlighted (--webkitProgressPercent) was not working in mobile (at least not in Chrome, I did not test the other mobile browsers). I was able to get it working though by adding to the JS.
Adding here in case anyone else needs it :)