I have this JavaScript code:
window.onload = init; function init () { var button = document.getElementById(\"submitButton\"); button.onclick = addIt
If I understood you correctly:
$("li").on("click", function() { $(this).remove() });