jQuery check element ID
<p>I know there is plugin called .hasClass();</p>

<p>I have the following</p>

<p><code>$('#page_background, #header_background').ColorPicker({...</code></p>

<p>how would I check if page_background is clicked and not header_background?</p>

<p>This is what I have now, it won't work.</p>

<pre><code>$('#page_background, #header_background').ColorPicker({
        onSubmit: function(hsb, hex, rgb, el) {
            $(el).val(hex);
            $(el).ColorPickerHide();

            var id = this.id;

            if(id == 'page_background')
                $('body').css("background-color","#"+hex);
        },
        onBeforeShow: function () {
            $(this).ColorPickerSetColor(this.value);
        }
    })
    .bind('keyup', function(){
        $(this).ColorPickerSetColor(this.value);
    });
</code></pre>
