How to add a value suffix in jQuery.knob

后端 未结 4 1112
滥情空心
滥情空心 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条回答
  •  梦毁少年i
    2021-02-03 14:39

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

    http://jsfiddle.net/DWvsh/6/

提交回复
热议问题