per default it’s like this:

<input type="checkbox" name="checkbox_group_'.$groupname.'" id="checkbox_group_'.$groupname.'" class="custom checked" data-mini="true" value="0" checked="true"/>
<label for="checkbox_group_'.$groupname.'">'.$groupname.'</label>

programmatically it’s like this:

$(document).ready(function() {
	$("input[type=checkbox]").attr("checked",true).checkboxradio("refresh");
	$('#checkbox_group_default').checkboxradio('disable'); // if you want to disable the checkbox (grey out)
});

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin