JSFiddle - React, Tailwind, and code Playground

HTML

<label for="user_name">
  <abbr title="required">*</abbr>
  Name
</label><label for="user_name">
  <abbr title="required">*</abbr>
  Name
</label>

JavaScript

$('label[for="user_name"]').each(function(){
var a = $(this).children('abbr');
$(this).html(a).append('Title');
});