As you probably know, an ID must be unique per element and can only be used at most once within a document. You're violating those rules by having the same ID on multiple elements (in the same document).
That being said, if you aren't able to change the ID's to classes, you can use an attribute selector:
$(document).ready(function () {
$(".hidearea").toggle();
$(".moreinfo").text('More Info');
$("[id='boxes']").click(function (e) {
e.preventDefault();
var index = $(this).index(),
newTargets = $('.hidearea').eq(index),
ancTargets = $('.moreinfo').eq(index);
$(ancTargets).text($(ancTargets).text() == 'More Info' ? 'Less Info' : 'More Info');
newTargets.slideToggle(300)
return false;
})
});