bakoma
|
 |
« on: July 05, 2014, 02:35:42 PM » |
|
For example, you have a slider:
<input id="ss" class="easyui-slider" value="25" style="width:300px" data-options="showTip:true,rule:[0,'|',25,'|',50,'|',75,'|',100]" />
Use JavaScript to disable it: $("#ss").slider("disable");
I would expect that a user will NOT be able to change its value. It appears this is true since the slider is dimmed and you cannot drag the ball to slide to other value.
However, there is a way to change the value it is showing to user no matter whether the value behind the control is changable or not. Since the default is 25, the sliding ball is on 25, but you can clicking on 50, then the ball moves to 50, you can do the same thing to other value such as 75. This bug mistakenly signals the user that the value is changable. This is contrary to my purpose of disabling the control unfortunately.
|