query find by data attribute and replace div content code example
Example 1: jquery select element with data
$('[data-attribute="value"]');
Example 2: select by data attribute
$('*[data-id="your_id"]');
$('[data-attribute="value"]');
$('*[data-id="your_id"]');