(function () { const mulaDiv = document.querySelector('#tabs-2 .tab-content-section'); if (!mulaDiv) { console.error(' #kula ke andar .mula nahi mila'); return; } const children = Array.from(mulaDiv.children); if (children.length <= 1) { console.warn(' First child ke alawa koi child nahi hai'); return; } const htmlToCopy = children .slice(1) .map(child => child.outerHTML) .join('\n'); navigator.clipboard.writeText(htmlToCopy).then(() => { console.log('HTML successfully copied to clipboard'); }).catch(err => { console.error('Clipboard copy failed:', err); }); // console me bhi show kar do (optional) console.log(htmlToCopy); })();