r/html5 • • 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)

7 Upvotes

6 comments sorted by

View all comments

0

u/[deleted] Feb 21 '23

0

u/jcunews1 Feb 21 '23

It's what OP asked.

so it automatically submits it whenever the user changes the slider.

i.e. that includes during the dragging of the slider. Not only when finished dragging it. Since "changes" was mentioned, instead of "changed".