I would like to know if it is possible to add CSS classes to a parent and its child.
For example:
$('#w').html('<ul><li></li></ul>');
$('#w ul').addClass('.filefield-element .filefield-preview');
The desired output:
$('#w').html() is now:
<ul class="filefield-element"><li class="filefield-preview"></li></ul>
Is such a thing possible? Greetings!