i have two different divs (code was simplified, this is not the actual code.)
This should work
($('#test','#funt')).click(function(){alert('yes')});
http://api.jquery.com/multiple-selector/