1.使用$("#id").attr("checked", true).checkboxradio("refresh");时,出现:
Uncaught cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh';
改成:
$("#id").attr("checked", true).trigger('create').checkboxradio("refresh");
来自:http://forum.jquery.com/topic/call-methods-on-checkboxradio-prior-to-initialization-refresh