JSFiddle - React, Tailwind, and code Playground

HTML

<label class="editable" id="user_info_username">Hai world...</label>

JavaScript

$(".editable").live("click",function(){
    var html = $('<div>').append($(this).clone()).html();
    alert(html);
});