What's wrong the this jquery plugin?
<pre><code>jQuery.fn.func = function()
{
    this.each(function(){
        $(this).onclick(function(){
            alert($(this).attr('id'));
        });
    });
}

$('#id1,#id2').func();
</code></pre>

<p>It reports:</p>

<pre><code>$(this).onclick is not a function.
</code></pre>

<p>What's wrong?</p>
