I have two click events as follows:
$($(\'[id^=\"tab\"]\')).live(\'click\', function() { alert($(this).attr(\"id\")); }); $($(\'[id^=\"home\"]\')).live(\'cl
$('[id^="home"], [id^="tab"]')
$('[id^="tab"], [id^="home"]').live('click', function() { alert($(this).attr("id")); });
http://jsfiddle.net/yUYVh/3/
Sure, simply divide them by ,:
,