<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"> <title>jQuery UI</title> <link rel="stylesheet" href="jquery-ui.min.css"> <script src="./external/jquery/jquery.js"></script> <script src="jquery-ui.min.js"></script> <style> .ui-selected { background: red; } </style> </head> <body> <div id="bar" style="width:200px"></div> <div id="slider" style="width:200px; margin-top:20px"></div> <script> $(function(){ $('#bar').progressbar({ value: 0 }); $('#slider').slider({ slide: function(event, ui){ console.log(ui.value); $('#bar').progressbar('option', 'value', ui.value); } }); }); </script> </body> </html>