I would like to set content to each button.
I have array and would like to set A,B,C,D.
But now,in my work below, the result is a little different.
Are there any way to achieve it ?
Thanks
arr=["A","B","C","D"]
$(".button").text(arr);
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<div>
<button class="button"></button>
<button class="button"></button>
<button class="button"></button>
<button class="button"></button>
</div>