+ 1
So i trying to create a function that will make a new div when i click a button but cant figure how .
6 Réponses
+ 4
use JavaScript
you will learn it on JavaScript Course
+ 1
@calvin thanks thats really helpful, im jyst gonna have to tweaj around with it a bit to see if it works.
0
You could use Javascript function insertAdjacentHTML to add element to the webpage.
Check out this code to see how element could be added using insertAdjacentHTML.
https://code.sololearn.com/WJ9qq83f0Z7j/?ref=app
0
ive been using JavaScript but im still learning.
0
@calvin does your cide use jQuery?
0
My code actually not use jQuery,
but the source code is included jQuery because of materializeJS needs jQuery.
Edited: I have removed jQuery from the source code, since the Materialize components i use are not using MaterializeJS