Button state

Button state

Hi, I am using jquery UI button widget and I need to change its state. 

I know that I can enable or disable it but I need more states like checked or unchecked (like a checkbox but applied to links). Is there any way to do it?