+ 6
Can I get a shortest form of creating a to-do list?
2 Respuestas
+ 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
+ 5
Can I get for jQuery?