In the following example code, I attach an onclick event handler to the span containing the text \"foo\". The handler is an anonymous function that pops up an <
onclick
For any object array with header and data.jsfiddle
jsfiddle
https://jsfiddle.net/AmrendraKumar/9ac75Lg0/2/