I am working on a class assignment, and each of the "Add Task" buttons need to have a prompt show up (which I have done), and the item that is entered needs to be added to the bottom of the respective lists.
I have tried the appendTo and append options, but I am not sure how to append my variables item1, and item2 to their respective lists.
$("#add1").click(function(){
var item1 = prompt ("What task would you like to give Kelly?");
});
Here's the problem via JSFiddle: here
Aucun commentaire:
Enregistrer un commentaire