jQuery Mobile:如何获取范围滑块的更改事件? [英] jQuery Mobile: how to get the change event of a range Slider?
本文介绍了jQuery Mobile:如何获取范围滑块的更改事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要做的就像代码一样:当值大于10时,显示>10,或显示1-10.它工作正常.但是,如果我取消注释 jquery mobile ,它将不再起作用.
<头><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"><script src="https://code.jquery.com/jquery-1.11.3.min.js"></script><!--<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>-->头部><身体><表格><label for='range'>as</label><input id='range' type='range' onmousemove='test()'><p id='显示'>显示</p></表单><脚本>功能测试(){var v = $('#range').val();if(v <= 10)$("#display").text('1-10');否则 $("#display").text('>10');}