divの比率を変更するJquery Mobileスライダーの動作中のJSfiddleがあります。
新しいバージョンの Jquery Mobile (1.8.2) で使用したいのですが、うまくいきません。誰でも助けることができますか?
<div data-role="fieldcontain">
<input type="range" name="slider" id="slider" value="60" min="0" max="100" /></div>
<div id="proportion" style="border:1px solid #ccc; width:150px; height:150px;" /></div>
<script>$("#slider").change(function() { sliderValue = $(this).val(); $("#proportion").width(sliderValue*3); $("#proportion").height(300-sliderValue*3); }); </script>