+ 1

So i trying to create a function that will make a new div when i click a button but cant figure how .

28th Jul 2017, 10:56 AM
Hoeft Brian
Hoeft Brian - avatar
6 Réponses
+ 4
use JavaScript you will learn it on JavaScript Course
28th Jul 2017, 1:06 PM
Art456
Art456 - avatar
+ 1
@calvin thanks thats really helpful, im jyst gonna have to tweaj around with it a bit to see if it works.
28th Jul 2017, 1:25 PM
Hoeft Brian
Hoeft Brian - avatar
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
28th Jul 2017, 1:11 PM
Calviղ
Calviղ - avatar
0
ive been using JavaScript but im still learning.
28th Jul 2017, 1:20 PM
Hoeft Brian
Hoeft Brian - avatar
0
@calvin does your cide use jQuery?
28th Jul 2017, 4:33 PM
Hoeft Brian
Hoeft Brian - avatar
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
28th Jul 2017, 4:40 PM
Calviղ
Calviղ - avatar