Edit in JSFiddle

$("#shoppingForm").on('submit', function(e){
	var text = $('#addToList').val();

$('#shoppingList').on('dblclick', 'li', function(){
<!-- Easy jQuery - Create a Shopping List - #6 -->
Welcome to the sixth Easy jQuery Tutorial, part of <a href="https://www.easyprogramming.net">EasyProgramming.net</a>. In this tutorial, we'll create a shopping list that you can add to and remove from pretty easily. 
We'll be using event listeners, append, and .remove()

<form id="shoppingForm">
  <input id="addToList" type="text" /> 
  <button type="submit">Add</button>

  Our Shopping List:
<ul id="shoppingList">