jquery add attribute without value

JavaScript
$('#someid').attr('name', 'value');$('body').attr('data-body','');
Source

Also in JavaScript: