This may not work for groups and group-based elements (date, hierselect). To ensure proper behaviour, you should update attributes of grouped elements manually.
Paramètres
mixed
$elements
Array of element names/objects or string of elements to be updated
mixed
$attrs
Array or string of html attributes
Valeurs renvoyées
throws no exceptions thrown
Note
since 2.10
Cette fonction ne peut pas être appelée de façon statique.