I'm trying to add input text into a list but doesn't work <p>So I'm trying to put input text into a list but doesn't work. And empty list option doesn't work either. Here is my code: </p> <p><a href="http://pastebin.com/knL8dL5y" rel="nofollow">http://pastebin.com/knL8dL5y</a></p> <p>Here is the task I was given: Create a " numeric keypad " by putting out 10 buttons with text 0,1,2,3 etc . Make as a text field where you can enter numbers as 3604 by pressing the buttons. Every time you press a button , should therefore number that is on the button is added to the text box. </p> <p>Somehow it doesn't let me add the numbers to another list and it won't empty the list either. </p>