This works when the checkboxes are clicked, but not when a page is reloaded, prefilled from URL parameters, using a Cred Edit post form, etc.
I've tried replacing .click(function) with change, ready, but these don't seem to work at all...
My sincere apologies for the duplicate question. I've gotten confused with all the different previous tickets and especially with hidden links unable to see working example. If you could point me in the right direction that would be super appreciated.
Thank you for sharing the admin access and further details.
Since your checkbox styling depends on the presence of "checked" class in the parent "label" tag, you'll need to include an additional script that executes on the page load and appends that class, to all "checked" checkbox inputs.