Seth
Seth

Reputation: 363

How do I dynamically change the Jquery mobile slider label in code?

Or is there a way to add units of measure to the slider value?

<label id="sliderLabel" for="slider">example</label>
        <input id="slider" name="slider" type ="range" min ="1000" max="111000" step   ="100" value="55500" data-highlight="true"/>

Upvotes: 0

Views: 303

Answers (1)

Mooseman
Mooseman

Reputation: 18891

$('#sliderLabel').text("New Label");

Fiddle: http://jsfiddle.net/zbdQh/ Just click the word 'example' to change the text.

Upvotes: 1

Related Questions