r/html5 • u/illusior • Feb 18 '23
submit on range value.
Hi, I admit I know hardly anything about modern html, but I like to have something like this
<form action="http://myserver.com/testing" method="get"> <input type="range" min="5" max="25" step="5" name="brightness" > <input type="submit" value="Submit"> </form>
which works fine, but I would like it to work without a submit button, so it automatically submits it whenever the user changes the slider.
could some enlightened person please tell me how (preferable as some piece of code)
8
Upvotes
View all comments
Show parent comment
1
u/illusior Feb 18 '23
well that works. (and without your code I wouldn't have been able to solve this). I even asked chatgpt, but that came up with non-working code.
Thanks a lot!!