I have used a plugin to make a percentage loader circle. following is the js used after initializing that plugin:
$("#test-circle").circliful({
animation: 1,
animationStep: 5,
foregroundBorderWidth: 15,
backgroundBorderWidth: 15,
percent: 35,
textSize: 28,
textStyle: 'font-size: 12px;',
textColor: '#666',
multiPercentage: 1,
percentages: [10, 20, 30]
});
I want the user to change the value of percent. For this i have used:
$("#submit").click(function(){
var deg = ("#input").val();
var degree = deg;
});
Now I have the value from user , but i don't know how to pass it to plugin. I am very new to jquery, and having a some trouble in doing this,