JSFiddle - React, Tailwind, and code Playground
HTML
<div id="testdiv"></div>
JavaScript
$('#testdiv').data('other', 'othervalue');
$('#testdiv').removeData(['val', 'other']);
$('#testdiv').append($('#testdiv').data('other'));
<div id="testdiv"></div>
$('#testdiv').data('other', 'othervalue');
$('#testdiv').removeData(['val', 'other']);
$('#testdiv').append($('#testdiv').data('other'));