I need jQuery's .on() event to fire when the page has loaded. I have some dynamically generated checkboxes based on the users selections on the previous screen. I have code that does what I want it to but i've bound it to the 'body' click event to allow me to test it works.

What I have is the following and need this to trigger as soon as the page loads instead of the body click.

```
$('body').on('click', function (e) {
    $("input:checkbox").each(function () {
        if ($(this).attr("disabled") == "disabled") {
            $(this).parent().addClass('disabled');
        }
    });
});

```