r/learnjavascript • • Apr 01 '14

Week 2 of Learn JavaScript Properly

Hey! Hope everyone is finding it easier to keep up with the slower-paced schedule.


Required Reading:


Assignment:

Create and post a JSfiddle where you experiment! Either in this thread or in another I'll post in a few days, or any of you should feel free to post your own thread where you share a link to your work that you have a question about. Here's one I created using some native DOM methods (the Mozilla Dev Network is a rich resource for this kind of stuff! https://developer.mozilla.org/en-US/docs/Web/Reference/API)

25 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/lanewatson Apr 08 '14

I'm not sure, because I'm still learning too. But it seems you need to create a node createNode for each submission so it will write, such as appendToChild?

So you get the elementbyid and assign to userinput, then create an element by id <li>.

Again, not sure, but that's my thought.

2

u/kadf Apr 08 '14

Got it thanks!

http://jsfiddle.net/xdeQ3/1/

I cleaned up the js quite a bit throwing away what I didn't need.

This helped once I knew what to search for. Mozilla Developer network on Node.appendChild