Day 9/30–30DaysofCoding Dynamic List
Hey, guys it is 9th Day and in this code instead of stoping the user from inputing more text in the input box I decided to make the list based on the content they are entering.
So, I am reading the value of the input box by using ‘value’.
To read the all value entered by the user I am pushing them in the array and after that reading the values , running a loop on same array.After that I am creating the UL and LI by using “document.createElement” and throwing the input value in LI by using innerHTML and at the end throwing the UL in page under the div by using append.
Also, I need to get the UL remove every time from the page when new value get pushed to render the updated content.
Pretty sure I need to refactor the code which I ll do soon.