how to set an attribute with no value in jquery code example Example: jquery add attribute without value $('body').attr('data-body','');