data attribute

data attribute

How can I set a variable into the data attribute like shown?

Thanks for your support!


var xy = $(this).data('file'),

        xy1 = (klick +'1');

$('div[data-file= ?xy1?])'.hide();