+ 6

Can I get a shortest form of creating a to-do list?

2nd Jun 2020, 11:22 PM
VṢtēphen
VṢtēphen - avatar
3 Réponses
+ 1
var input = $("#input").val() var item = "<li>" + input + "</li>" $("#list").append(item) 1. capture input 2. create html element 3. append it to list
2nd Jun 2020, 11:57 PM
JME
+ 5
Can I get for jQuery?
2nd Jun 2020, 11:52 PM
VṢtēphen
VṢtēphen - avatar