JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Text Boxes & Inputs › Allow to select text on readonly input › Reply To: Allow to select text on readonly input
July 14, 2020 at 3:22 pm
#100922
Keymaster
Hi Tr12,
Actually, the previous was answered by my colleague. Anyway, you can call him Peter, too 🙂
When you add multiple HTML Elements, it would be better to add them just once in the DOM.
const doc = document.createDocumentFragment();
for(let z = 0; z < 30; z++) {
let text = new window.Smart.TextBox();
text.value = "abc";
doc.appendChild(text);
}
document.body.appendChild(doc);
Best Regards,
Peter
Smart HTML Elements Team
https://www.htmlelements.com