Thursday 6 May 2021

JQUERY13

 <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 id="list">

</ul>

</form>

</body>

</html>