【发布时间】:2011-12-13 06:35:31
【问题描述】:
我需要让按钮在其他元素触发后开始闪烁,例如选中复选框 - 请参见下面的代码:
<label>I agree with the terms</label>
<input class="some_check" type="checkbox" id="Signed">
<button class="buttonstyle" name="buttonNext" onClick="nextChoose('NEXT')" disabled>Proceed!</button>
闪烁必须是无限的,直到:
- 用户点击按钮或
- 取消选中复选框。
我知道 jQuery UI 中有 .effect() 方法,但它是有时间限制的
如果我通过回调循环它,我怎样才能打破它以返回先前状态的按钮?
【问题讨论】:
-
闪烁标签死掉是有原因的...
-
你的意思是所有这些效果看起来很恶心?看看这里 - jqueryui.com/demos/effect,我认为他们很聪明
标签: jquery jquery-ui effects jquery-ui-button