I try to change linkbutton text in handler to display status of operation. Text changed but opts.selected is locked as false after that block and cannot be changed anymore:
...
handler:function(){
var opts = $(this).linkbutton('options');
if(opts.selected) {
$(this).linkbutton({ text: 'State 1'});
} else {
$(this).linkbutton({ text: 'State 2'});
}
}