title: How to add an image dynamically in javascript
body: <p>I want to add an image according to the condition of flag variable in a column of the row. I am unable to use the innerHtml or if I use the image object also, it's not working properly. The rows are created dynamically so I am confused how I can solve it, when flag is true them image will be shown otherwise image will not be shown.</p>