How to add a value suffix in jQuery.knob

后端 未结 4 1126
滥情空心
滥情空心 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:34

    As for version 1.2.8 of knob(current of writing), simply use format function

    jQuery(document).ready(function($){
                $('.ksta').knob({
                    'min':0,
                    'max':100,
                    'step': 1,
                    'readOnly': false,
                    'data-linecap': 'round',
                    'format': function(v){ return v + ' $';}
                });
            });
    

提交回复
热议问题