user1319501
user1319501

Reputation: 93

HTML5 Range Slider

The following HTML5 code works in Chrome and Firefox but not in Internet Explorer 11

<input type=range min=0 max=200 value=0 id=fader step=1 onchange="outputFirstUpdate(value)" />
<label>£<output for=fader id=FirstAmount>0</output></label><br />

The problem in IE 11 is that the label is always 0 when the slider is moved.

Does anyone have any ideas?

Upvotes: 0

Views: 312

Answers (1)

Ian Hazzard
Ian Hazzard

Reputation: 7771

I would use something like this:

function updateInput(val) {
      document.getElementById('textInput').innerHTML=val; 
    }
<input type="range" name="rangeInput" min="0" max="100" onchange="updateInput(this.value);">                                                       
    <p id="textInput"></p>

Upvotes: 2

Related Questions