jQuery Mobile: Slider with hightlight

This entry is part 69 of 73 in the series jQuery Mobile

To build a slider with highlight, we can use hightlight=’true’ as in the code below:

<!DOCTYPE html>
<html>
<head>
    <link href='http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.css' rel='stylesheet'/>
    <script src='http://code.jquery.com/jquery-1.10.2.min.js'></script>
    <script src='http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.js'></script>
    <title>Upwhere</title>
</head>
<body>
<div data-role='page'>
    <div data-role='header' data-theme='b'>
        <h1>Slider</h1>
    </div>

    <div data-role='content'>
        <form>
            <label for='slider_id2'>Slider (default is 'false'):</label>
            <input type='range' name='slider2' id='slider_id2' data-highlight='true' min='0' max='100' value='50'>
        </form>
    </div>

    <div data-role='footer' data-position='fixed'>
        <h4 style='text-align:center;'>I'm the footer</h4>
    </div>
</div>

</body>
</html>
Try The Code
Series Navigation<< jQuery Mobile: Basic slider
jQuery Mobile: Flip toggle switch >>