Function setBooleanDataNow

Sets the given data attribute with value "true" (default) or "false".

The name of the attribute must not start with data. It can be in either camelCase or kebab-case, it is converted as needed.