How should i construct my code to get the effect of this jQuery
var divQuery = $('.html5gallery-thumbs-0').children();
divQuery.on('click', function () {...}
I thought it is something like this :
var divQuery = document.getELementsByClassName('html5gallery-thumbs-0');
divQuery.onclick = function (elem) {
//this.style.display = 'none'
// OR
//elem.style.display = 'none'
}
Element should reference to the clicket object right? Or it should be the key word this. I want to learn javascript because jQuery is only library after all. Thank you in advance!