Hi!
Im trying to do something like a check-button that displays the circle-check icon if checked.
Right now, i try to do it like this:
- $( "#checknotneuerdienstsms" ).button({
- text: false
- }).change(function() {
- $(this).button("option", {
- icons: { primary: this.checked ? 'ui-icon-circle-check' : null }
- });
- });
And this works, until i am clicking the button very fast. If i do that, icon wont switch, just button is toggled on / off.... why? What am i doing wrong?