jquery - checking for inline javascript on attribute
<p>Is there a way to test if a custom attribute is a function?  I've tried using jquery's isFunction method, but it doesn't seem to work with this scenario.  </p>

<p>For example:</p>

<pre><code>&lt;input id="test" class='date' oncomplete="function() { alert('i am a function'); }" type="text" /&gt;

&lt;script&gt;
    $(".date").livequery(function () {
        var onComplete = $(this).attr("oncomplete");
        if ($.isFunction(onComplete)) {
            $(this).mask("99/99/9999", { completed: onComplete });
        } else {
            $(this).mask("99/99/9999");
        }
    });
&lt;/script&gt;
</code></pre>

<p>I have several date fields.  I'm trying to give a couple of them special behavior.  I know I can just have a separate jquery selector to set them up with the behavior they need.  But wanted to see if there was an inline way of doing this.</p>
