Attributes can be included within a string in the following format:
let attr = ' min="0" step="5" max="100" ';
or
let attr = ' min="2019-12-25T19:30" ';
and so on.
Is there a function available (in either JavaScript or jQuery) that can be used to assign these attributes to an HTML element?
Something similar to setAttribute(name, value);
but for setting multiple attributes at once.