Merhaba arkadaşlar,
laravel projemde ajax kullandım. istediğim gibi cevap alıp yazdırıyorum.
Kod:

$.ajax({
url: "{{ route('frontend.product.pricepost') }}",
method: 'POST',
data: dataOpt,
success: function(item) {
item.forEach(function(data) {
$('#product_price').append(
''+ data.qty +''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''+
''
);
});
}
});


Çıkan sonuçlardan label içindeki fiyata tıklandığını yakalamak istiyorum.
Örnek kod:

$('label[id="S_price"]').on('click', function(){
alert('deneme');
});