<html>
<head>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('button').click(function()
{
var
mylist = $('#input').val();
$('#list').append('<li>'+mylist+'</li>');
return false;
});
});
</script>
</head>
<body>
<form>
Value:
<input type="text" name="task" id="input">
<button>Submit</button>
<br>
</ul>
</form>
</body>
</html>