I'm trying to create a button-based approach to radio buttons within SilverStripe 3.0 and am having trouble hooking into the CMS jQuery hooks.
I have looked at the documentation on the matter (http://doc.silverstripe.org/framework/en/topics/javascript/) but am getting javascript errors on:
Behaviour.register({ ...
.
Basically I need to detect when the current page is fully loaded (after saving, publishing, deleting, loading new page, etc) so I can use jQuery and apply the appropriate styles and classes to the label elements (see screenshot - these are radio buttons).
How do I (using jQuery) listen for the PageLoaded hooks as discussed in the documentation (http://doc.silverstripe.org/framework/en/topics/javascript/)?