jQuery Multiple State Toggle
I have three button images, each with three states (Enabled, Hover, Disabled), so a total of 9 images. These three buttons are mutually exclusive. So, clicking button A will disable buttons B & C. Is there an easy way to do this in jQuery, or do I have to manually show()/hide() the various combinations on click of each image?
[ Button A (Enabled) ]
[ Button B (Disabled) ]
[ Button C (Disabled) ]
[ Button A (Disabled) ]
[ Button B (Enabled) ]
[ Button C (Disabled) ]
[ Butto开发者_如何学Gon A (Disabled) ]
[ Button B (Disabled) ]
[ Button C (Enabled) ]
jQuery UI has a radio button. Demo here.
精彩评论