How is it that the first event bind works for all the submit buttons, yet the second applys the css only for the last one, regardless of what form it is listening to?
for (var i=0; i < len; i++) {
var divI = "ind-" + i;
var formID = document.forms["form-" + i];
$(formID).bind("submit", validate);
$(formID).bind("change", function(){
$('#' + divI).css("background-color","green");
});
}