493: Undecipherable

-Blog-

-Projects-

-About me-

-RSS-

HTML JS publish click-events to all childs

Dennis Guse

I have tables with one radio button per cell and its quite annoying to aim at the radio button completely…

1
2
3
<td onclick="
  for (var i in this.childNodes)
    if(typeof this.childNodes[i].click === 'function') this.childNodes[i].click();"><input type="radio" >Just clickable text</td>