Solution:1
Try this :
@for($i=0; $i<3; $i++)
<button class="button-list" custom-value="{{ $i }}"></button>
@endfor
<script>
$( ".button-list" ).click(function() {
var custom_value = $(this).attr('custom-value');
alert(custom_value);
});
</script>
...