Search the Community
Found 3 results
Hi. I have tried to evolve on the beautiful script: https://www.w3schools.com/howto/howto_js_todolist.asp Lets say it's a shopping list. How do I add static buttons, preferrably in a left column, so when I click Milk, Milk will appear on the list. I like that I can write what's needed in the textfield, but I like an option to click buttons, instead of writing eg. Sugar, Milk, Potatoes etc. Then I could have a list of buttons to the left, where I can click the buttons, and add text to list. And if possible, it would be awesome to click a button, and copy all in the list to clipboard, ort present the list in a new window or iframe. I have tried to re-use the html part, but adding buttons instead, with value of eg. "Sugar" but it keep saying I need to write something, and when I do, it still won't add Sugar to the list. What am I doing wrong? Can someone help me out? My understanding in Java is very very limited, css somewhat ok and html better. Still cannot work this thing out. I thank you in advance.