I want to replace <div class="info"></div> on clicking button with another div from external file. How will i do that? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

I want to replace <div class="info"></div> on clicking button with another div from external file. How will i do that?

I am using flask framework

28th Jun 2020, 7:21 AM
Hassan Bari Raza
Hassan Bari Raza - avatar
1 ответ
+ 1
a way for doing this is using JavaScript! you can create objects with document.createElement(el), add properties to it with el.setProperty(property, value) and add them to your document using document.body.(the destination).appendChild(el). Or you can use css, with display: none (change the property style using JavaScript)
28th Jun 2020, 6:28 PM
~kyros~
~kyros~ - avatar