question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input value never changing

See original GitHub issue

Sorry if this is a duplicated of this other issue.

I open a new one because I feel like nobody will get notifications on a closed one.

The problem is that my input value always shows the same, and sending my form the value is the same as well.

It never changes when the user moves the slider. Here is some of my code:

<input type="range" name="valor-contenido" data-min="1000" data-max="1000000" data-step="100" data-from="2000" value="2000" class="wpcf7-form-control wpcf7-range wpcf7-validates-as-required wpcf7-validates-as-number full-width" aria-required="true" aria-invalid="false">

And the slider initialization:

$('input[name=valor-contenido]').ionRangeSlider({ skin: "round", onChange: function (data) { console.log(data.input[0].value); //THIS IS ALWAYS --> 100 console.dir(data); } });

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Richacinascommented, Mar 23, 2020

Ok perfect! thanks for all your help @IonDen.

1reaction
IonDencommented, Mar 23, 2020

Remember 2 things:

  1. Type range supports only 1 handle and 1 value. So in case of 2 handles it is out of game.
  2. This plugin is developed for 9+ years already and of course it has IE8+ support.

In version 3.x I will drop old IE support of course, but not for 2.x version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't the value attribute of the input change?
in browser it changed to "TOP" but when I inspect element with firebug, the VALUE attribute of INPUT still "", not changed. javascript...
Read more >
HTMLElement: change event - Web APIs | MDN
When the element loses focus after its value was changed: for elements where the user's interaction is typing rather than selection, such as...
Read more >
Why the number input is the worst input - Stack Overflow Blog
Why the number input is the worst input · When the number input contains an invalid value and you retrieve the value, you...
Read more >
Missing change event when changing model on input value.bind
<input value.bind="model" /> and I have a change event wired up to the input, that change event never fires when the model is...
Read more >
How to detect all changes to input value mdb-auto-completer
Also (change) is never triggered at all. What then is way to detect the change of the input value (originated from any source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found