jqueryMobile submit slider
-
09-07-2021 - |
Question
I'm new in jqueryMobile, i want to post the value of slider but i don't find the method or the script can help me to do this
here some resources but i don't find what i'm looking for
and here the slider
<div data-role="fieldcontain">
<input type="range" name="slider-fill" id="slider-fill" value="{{page}}" min="1" max="{{nb_pages}}" data-highlight="true" />
</div>
Solution
jQM Docs:
Example:
<form action="yourScriptToHandleThePost.php" method="post">
<div data-role="fieldcontain">
<label for="timeout">Timeout:</label>
<input type="range" name="timeout" id="timeout" value="0" min="0" max="150" step="10" data-highlight="true" />
</div>
<button type="submit" name="submit" value="submit" data-theme="b">Submit</button>
</form>
UPDATE:
I think this is the functionality you're looking for
so for each range of values you could post data as the user slides the slider
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow