function onClickEv(child){
//change the class from div_className to div_newClass
console.log(child);
}
<a href="page url" id="a_idName" target="_blank" onclick="onClickEv(this)" class="a_className">
<div class="div_className">text here</div>
</a>
How can I change the class attribute value of div inside the anchor element in onclick
event "onClickEv"
in my external javascript. Is it possible?