Combining document.load + blur
<p>I have the following javascript to determine whether a copyright is properly formatted:</p>

<pre><code>    var copyright = $('#copyright')
    var copyright_text = copyright[0].value
    if (copyright_text.length &gt; 0) {
        var containsYear = /\d{4}/.test(copyright_text);

        if (containsYear == false) {
            copyright.css({
               'background-color': 'rgba(230, 89, 78, 0.07)',
            });
            copyright.parent().append(
               '&lt;div class="explanatory caution"&gt;CAUTION: Make sure this copyright contains a year.&lt;/div&gt;'
            );

        };
    };
</code></pre>

<p>How would I apply this same logic to <code>.blur()</code> as well as the normal page load above without copy and pasting all the code from above?</p>
