diff --git a/index.js b/index.js index c319e12..31e7582 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,7 @@ (function($) { - //future code goes here -})() \ No newline at end of file + $(document).on('submit', '#add-task-form', function(ev) { + ev.preventDefault(); + var newTask = '
  • ' + $('#task').val() + '
  • '; + $('#task-list').append(newTask); + }); +})(jQuery) \ No newline at end of file