document.getElementsByClassName(name)
returns a
HTMLCollection
Try to iterate through each element within that collection using a
for
loop:
var elements = document.getElementsByClassName("date");
for (var i=0; i < elements.length; i++)
{
elements[i].setAttribute("min", Today);
}