My current script for styling checkboxes and radiobuttons is working perfectly:
The issue arises when I dynamically add checkboxes and radiobuttons to the page using jQuery. The new elements do not inherit the custom styling.
Is there a workaround for this problem?
EDIT: I am using the following code to dynamically add new checkboxes:
dropdown.change(function () {
$('#template').tmpl(data).appendTo('.container'); // New elements are added here
Custom[init](); // However, this does not trigger
});