#Making a group of HTML Items Dependent On A List

3 messages · Page 1 of 1 (latest)

rotund hedge
#

Hi I'm pretty new to HTML and JavaScript and was curious how to approach making HMTL elements for every item within an array.

An example would be similar to how a reddit page looks where you have a UP and Down vote arrow for every post.
Question 1: If I were to have a list of names and wanted to create a couple buttons, display boxes, and ETC for each item within the list how should I approach it?
Question 2: How would I move all items down every time a new item is added.

Any tips would be great!
Thanks in advance for the help!
Attached is a image similar to what I want to achieve.

weak lodge
#

This doesn't sound like an Electron problem

rotund hedge
#

Oh i was unaware it had to be something about electron itself. I was just asking since I am using electron. Thanks for the reply.