Good afternoon. Let's say the block,and on click I need its value
$('.block1').click(function(){ let a = $(this).data('a'); let b = $(this).data('b'); });
In my understanding it is doing so,and that's the essence of the problem, I need click on another unit No. 2 took values of unit # 1.I can not write let a = $('block1').$(this).data('a'), etc. As in this case, take the value of the first block?There are many values,I can't just write $('block1').data('a')