JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://anthonyterrien.com/js/jquery.knob.js"></script>
<input type="text" class="dial" value="2" id="test" disabled="disabled">
JavaScript
$(".dial").knob({
'min' : 0,
'max' : 5,
'readOnly' : false,
'width' : 70,
'height' : 70,
'dynamicDraw' : true,
change : function(value) {
alert(this.$.attr('id'));
},
});