JavaScript mendapatkan elemen berdasarkan kelas
var elementsArray = document.getElementsByClassName("someclassname");
Grepper
var elementsArray = document.getElementsByClassName("someclassname");
document.getElementsByClassName("legend").style.display="none";