How to make input value showing every input on button click without deleting the previous input ?
$(document).ready(function(){
$("#btn").click(function(){
var getVal = $("#inputValue").val();
$("p").html(getVal);
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="main">
<fieldset>
<legend>jQuery input value</legend>
<input id="inputValue" type="text" name="text">
</fieldset>
<button id="btn">display value</button>
<p></p>
</div>