It’s also possible to append elements into the code by using jQuery code too. There are two ways in JavaScript which helps to append HTML code to a div. – user517406 May 3 '11 at 11:44 3 i think it would be like that list[list.length]= {date : '11/11/1999',reading:3,id=1}; Regards – Marwan May 3 '11 at 12:13 Here is syntax to use innerHTML as follows: element.innerHTML = element.innerHTML + “HTML Code”. The options of a select box act like an array. In this tutorial, you will find out the solutions that JavaScript offers for appending an item to an array. An unordered list is a lot like an array.