Why my function hiding only one id element. I thought it should hide everything with id #foo. Fiddle
$(function(){
$('#foo').hide();
});
Here is my HTML
<div id='foo'>Hi there</div>
<div id='foo'>Hi there</div>
<div id='foo'>Hi there</div>
<div id='foo'>Hi there</div>
<div id='foo'>Hi there</div>