私は新しいJavascriptであり、以下の問題を解決したいと考えています。下のHTMLコードは、1つのフォームに2つのライブスライダ入力を示しています。 1人だけが働いています。 (ソース:Live output in jQuery HTML5 range slider)jqueryでhtmlの複数のライブスライダーを使用
同じWebページで異なる値を持つ複数のスライダを使用するにはどうすればよいですか?
$("#rangevalue").mousemove(function() {
$("#text").text($("#rangevalue").val())
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head><title>Timing:</title></head>
<body>
<h1>TIMING:</h1>
<form action="/cgi-bin/can/test.cgi" method="post">
<table style="width:300px" border="1">
<th>time</th>
<tr>
<td>
<input type="range" name="p" value=16.08 min=0.01 max=32.08 id="rangevalue" step ="0.01"><label id="text" >16.08</label>
</td>
</tr>
<tr>
<td>
<input type="range" name="p" value=100 min=50 max=150 id="rangevalue" step ="0.01"><label id="text">100</label> sec.
</td>
</tr>
</table>
<br><input style="font-size:25px" type="submit" value="START">
</form>
</body>
</html>
のID **は一意である必要があります** – j08691