Search results

  1. P

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Thanks menator. This only puts the most recently added item in the h3textItems field. It does not return all of the items in the list. Is there a way to get all the items in the list to appear?
  2. P

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Thank you for your reply. Sorry, I should have included the rest of the code. I am grabbing the h3textItems element from the HTML already. This is working, but it doesn't remove the previous content in the h3textItems div. It is appearing as: item1 item1 item2 item1 item2 item3 Is there a...
  3. P

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Hi, I am new to JS from Python. I am trying to create a To Do List in JS, and I am trying to loop over an array that contains the added items. I want each item in the array to appear on a new line in the web app. The best I can get is for the items to be displayed like this item1,item2,item3 I...
Top