输入零后,JQuery Spinner无法选择

时间:2013-10-02 19:52:15

标签: javascript jquery jquery-ui-spinner

我在使用JQuery微调器小部件时遇到问题。如果我在文本字段中手动输入值0(不使用微调器的箭头,只是直接输入值),则微调器将灰显,我无法选择它。我必须完全重启单板微电脑才能恢复原状。可能导致此问题的任何想法(下面的代码)?

$(function() {
        var spinner = $( "#spinner_current" ).spinner({min: 0, max: 100,
            stop: function() { dlpCurrent();} });
});

<label for="spinner_current">Illumination Power (%) </label><input id="spinner_current" style="width:30px" name="value">

$("#dlp_current_tog").button().click(function(){ dlpCurrentToggle(); });

<input type="checkbox" style="width:25px" id="dlp_current_tog" class="widgetcheckboxes"/><label for="dlp_current_tog">Turn off LEDs</label>

0 个答案:

没有答案