2010-12-17 85 views
0

我有三个按钮图像,每个图像有三个状态(Enabled,Hover,Disabled),所以共有9个图像。这三个按钮是互斥的。所以,单击按钮A将禁用按钮B & C.有没有简单的方法在jQuery中做到这一点,或者我必须手动显示()/隐藏()每个图像点击各种组合?jQuery多状态切换

[ Button A (Enabled) ] 
[ Button B (Disabled) ] 
[ Button C (Disabled) ] 

[ Button A (Disabled) ] 
[ Button B (Enabled) ] 
[ Button C (Disabled) ] 

[ Button A (Disabled) ] 
[ Button B (Disabled) ] 
[ Button C (Enabled) ] 

回答

2

jQuery UI有一个单选按钮。演示here

+0

我会看看这是否可以使用图像,谢谢! – 2010-12-17 14:41:47