Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

231
Visualizações
How to make a slider based on Input type Range (Using HTML5 input)?

I have a code <input id="freq" type="range" min="1" max="20000"> The form type is Range (input type="range"). How to style a range slider using NouiSlider? This slider changes the frequency of the signal. My code works but nothing happens when the slider is moved. If you do not connect to the input "NouiSlider" - then everything works fine.

var sliderFreq = document.getElementById('sliderFreq');
noUiSlider.create(sliderFreq, {
  start: 10000,
  step: 1,
  connect: 'lower',
  range: {
    'min': 1,
    'max': 20000
  },
  format: wNumb({
    decimals: 0
  })
});

var freqInput = document.getElementById('freq');
sliderFreq.noUiSlider.on('update', function(values, handle) {
  var freqValue = values[handle];
  freqInput.value = freqValue;
});
freqInput.addEventListener('change', function() {
  sliderFreq.noUiSlider.set([this.value]);
});
<input id="freq" type="range" min="1" max="20000">
<div id="sliderFreq"></div>

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda