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>
    <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>
<div data-role='page'>
    <div data-role='header' data-theme='b'>

    <div data-role='content'>
            <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'>

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

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