I would like to archive that I have an Array, with 3-4 Items and then I want to itterate throw all of them and change the selector in the function with the items of the array.
let items = ['Name','Person,'New']
then my function
$('.btn').on("click", function(){do smth});
and then the foreach .btn should be like name or person, and I want maybe to add late more Items to the array. How should I do it?