A much better option would be to use JQuery. If you have table with multiple "div" in each row with the same class you can access all of them using the following line:
var innerDivs = $("table td .fc-day-number");
$.each(innerDivs, function (index, value) {
var divText = value.innerText;
});