var control = $('#control').bendGauge(); control.bendGauge('set', [1,3,5,6]); $('a').click(function (e) { e.preventDefault(); }); $('.flash').click(function () { control.bendGauge('flash', 3); });
<div id="control"></div> <a href="#" class="flash">flash 3 times</a>
body { background: #333; } a { color:#FFF } #control { width: 200px; height: 200px; }