Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialVivien Christian Cahyadi
935 PointsIs it more efficient this way? Copying and pasting the <ul></ul> tags in html seems more simpler to me.
Is it a good practice to do this? With the javascript we need to make a new js file and then make new variables and functions, I think it makes it more complicated (?)
1 Answer
Raffael Dettling
32,999 PointsWith javascript you can creat and delete html elements dynamically. It´s a flexible option for you´r website to interact with the user.
Was that you´r question?
Vivien Christian Cahyadi
935 PointsVivien Christian Cahyadi
935 PointsI see, like how shopping carts work online stores. Yes that's my question. Thank you ver much :)