@munsterlander Its not working with looping. Could you suggest? Code below. for(int i=0;i<3;i++){ var onsItem= document.createElement(‘ons-list-item’); onsItem.setAttribute(‘modifier’, “chevron”); onsItem.setAttribute(‘onclick’, “functionName()”); onsItem.innerHTML = ‘<img src="" alt=“something here” />’; document.getElementById(‘content’).appendChild(onsItem); }