E
E
Evgeny Karpov2018-02-11 17:54:34
JavaScript
Evgeny Karpov, 2018-02-11 17:54:34

How to change slider position using jqury?

How to implement scripts to change the position of the type="range" slider using js in real time?

<form onsubmit="return false" onchange="level.value = flevel.valueAsNumber+'%'">
          <input name="flevel" id="flying" type="range" min="0" max="100" value="10" step="1">
          <output for="flying" name="level">10</output>
        </form>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-02-11
@ewal

Your example doesn't have jQuery, and it looks like you're trying to change the output depending on the position of the slider.
If you need exactly

slider position type="range" using js in real time
then depending on what?
Your version brought to the working:
<form onsubmit="return false">
  <input name="flevel" id="flying" type="range" min="0" max="100" value="10" step="1" oninput="form.level.value = this.value">
  <output for="flying" name="level">10</output>
</form>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question