How can I bind events for multiple elements?
<p>I have this code:</p>

<pre><code>var li = $('&lt;li&gt;',{
   html : '&lt;div class="header"&gt;' + header + '&lt;/div&gt;&lt;div class="subheader"&gt;' 
          + sub_header + '&lt;/div&gt;&lt;div class="optkey"&gt;' + option_key + '&lt;/div&gt;'
            });

var tmpLi = li.first()[0].firstChild;

if( active ) {
    li.bind({
        mousedown: function(event) {
            console.log("mousedown");
            event.stopPropagation();
            select_box.find('.sbContent').html($(this).find('.header').html());
            select_box_disabled.find('.sbContent').html($(this).find('.header').html());
            select_options_container.trigger('hide');
            // *FINISH* need to update the original select input with the new value
            var key = $(this).find('.optkey').html();

            select_source.find('option:selected').removeAttr('selected');
            select_source.find('option:eq(' + key + ')').attr('selected', 'selected').change();
            return false;
        }

    }),

    tmpLi.bind({
        keypress: function(event) {
            console.log("keypress");
            event.stopPropagation();
            select_box.find('.sbContent').html($(this).find('.header').html());
            select_box_disabled.find('.sbContent').html($(this).find('.header').html());
            select_options_container.trigger('hide');
            // *FINISH* need to update the original select input with the new value
            var key = $(this).find('.optkey').html();

            select_source.find('option:selected').removeAttr('selected');
            select_source.find('option:eq(' + key + ')').attr('selected', 'selected').change();
            return false;
        }

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

<p>Before I added the <code>tmpLi.bind</code> chunk, it worked fine. Now, I get this error in Firebug:</p>

<blockquote>
  <p>TypeError: tmpLi.bind is not a function</p>
  
  <p>keypress: function(event) {</p>
</blockquote>

<p>How can I bind a unique event to both elements in the same if statement? Or is the problem that tmpLi is not a valid element? (tmpLi returns the html string <code>&lt;div class="header"&gt;</code>)</p>
