+ 1
How add an element in a list with JS
3 Antworten
0
1. Get the list object you want to append to
2. Get the object you want to append
3. Append that object to the list object
You'll need to use some id's in the HTML, some querySelectors in the JS, and a button to run your function.
This should be enough to get you started.
0
We have à list and with à button we can add an element of thé list
0
<select>
<option>A</option>
<-- and here I add an element of the list with JS
</select>