I've this code :
$("input").keyup(function() {
var data = this.value.split(" ");
$('p').append(data.slice(0));
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="search">
<p></p>
I want the first letter of this array to be capitalize, thanks for your help !