addClass not working in IE

addClass not working in IE

Internet Explorer 11 (possibly other versions) ignores the first application of .addClass() if the target element:
  • is one of the following inline elements: label, strong, span, em
  • contains an input element (any type)
  • contains text within another inline element such as: label, strong, span, em
It behaves properly in other browsers.