<label for="unsubscribeArticles" class="mktoLabel mktoHasWidth" style="width: 440px;"> <div class="mktoAsterix">*</div> Unsubscribe from Articles:</label>It's supposed to point to the following input, therefore the for attribute should be mktoCheckbox_95_0 instead of unsubscribedArticles.
<input name="unsubscribedArticles" id="mktoCheckbox_95_0" type="checkbox" value="yes" class="mktoField">As a workaround, here's some jQuery to reassign the for attribute of any label that points to an id that doesn't exist. However, it would be good if we didn't have to use JavaScript to fix a bug 😉
$('label').each(function() { $label = $(this); var labelFor = $label.attr('for'); if (!$('#' + labelFor).length) { $label.attr('for', $('[name="' + labelFor + '"]').attr('id')); } });
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.