How to add a value suffix in jQuery.knob

后端 未结 4 1125
滥情空心
滥情空心 2021-02-03 14:00

I have problem with jQuery.knob I need to add a Sufixx to the value in the knob.

For Example: i need a Sufix $ after the value, i just

4条回答
  •  暖寄归人
    2021-02-03 14:38

    Try this in a simple way,

    jQuery(document).ready(function($){
            $('.ksta').knob({
                'min':0,
                'max':100,
                'step': 1,
                'displayPrevious': true,
                'readOnly': true,
                'draw' : function () { $(this.i).val(this.cv + '%'); }
            });
        });
    

    There is no need to change the styles and other details.....

    Demo: http://jsfiddle.net/renishar/DWvsh/20/

提交回复
热议问题