开发者

How to custom reset jquery ui buttonset?

开发者 https://www.devze.com 2023-02-01 08:24 出处:网络
How can I reset radio buttons or checkbox of a jq开发者_StackOverflowuery ui buttonset made without using \"form.reset()\", because I want to reset this specific field.

How can I reset radio buttons or checkbox of a jq开发者_StackOverflowuery ui buttonset made without using "form.reset()", because I want to reset this specific field.

Code is here...: http://jsfiddle.net/tPH57/1/


You have to call the refresh method on the button: http://jsfiddle.net/AAcJ5/1/

From the documentation:

Refreshes the visual state of the button. Useful for updating button state after the native element's checked or disabled state is changed programatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消