I am trying to make a pop-up tab of a div table and would like to change the value of a div, specifically the son of a father who knows his id, something like this:
<div id="pariente">
<div id="hijo">Inactivo</div>
</div>
<div id="selector-1">Selector</div>
function toggle_visibility(id) {
var e = document.getElementById(id);
e.style.display = ((e.style.display!='none') ? 'none' : 'block');
}
An additional fact is that the id = Relative is a module of several repeats, and there is more selector-1. I need to click on the selector in another div to access the div = Son and change the "Inactive" to "Active". Thank you very much, I look forward to your answers. Greetings