How to get jQuery handle id

I use jquery knob, I want to get idbuttons on the change function.

$(".dial").knob({
  'min': 0,
  'max': 5,
  'readOnly': false,
  'width': 70,
  'height': 70,
  'dynamicDraw': true,
  change: function(value) {
    console.log("changed to: " + value);
  },
});
<input type="text" class="dial" value="2" id="test" disabled="disabled">

Thanks in advance

+4
source share
1 answer

Try this.$.attr('id');in functionchange

The working FIDDLE LINK will open

+3
source

All Articles