I need to add a hidden class in my JS if the span is empty, but if it isnt show the content.
HTML
<div id="uploadControls">
<br><span id="uploadsError" class="validErrors smarterr"></span>
</div>
JavaScript
$(document).ready(function () {
$('#uploadControls').find('span').each(function () {
if ($(this).is(':empty'))
$(this).addClass('.hidden');
});