I'm trying to do the following:
elementos = function(param){
return document.querySelectorAll(param)
}
elementos('.link').onclick=function(){
//Codigo
}
Notify me error.
What I want to do more exactly is something similar to the jquery method to select multiple selectors: $ (". a, # button")
What is missing or how can I do it?