+ 3
How can I use HTML elements in JS?
https://code.sololearn.com/WcSKmG6AOn20/?ref=app In this code I use div element but it can only use on strings if I use it to the var's a,b,c,d,e,f,g,h values it can't work and shows error so how can I use it on var keyword's values????? Please answer me.
3 ответов
+ 7
Search on google about "document.createElement()"
Using that , you can add even css using the js.
Check this: JS only.
https://code.sololearn.com/WUDkravlUb7V/?ref=app
+ 4
thanks