this to that via function?
<p>I have the following script:</p>

<pre><code>$('#element_1').live('click', function() {
    function_1(this)
});

function function_1(that) {
    that = that.attr("id").split('_');

    alert(that[0]);
    alert(that[1]);
}
</code></pre>

<p>I am trying to split the id attribute of "this", but I get an error:</p>

<p>Object does not support this property or method.</p>

<p>However, when I do the same thing directly in the click event e.g.</p>

<pre><code>$('#element_1').live('click', function() {
    var that = $(this).attr("id").split('_');

    alert(that[0]);
    alert(that[1]);
});
</code></pre>

<p>How do I get the top version of the script to work?</p>
