JSFiddle - React, Tailwind, and code Playground

by Rupali Soni

HTML

<link rel="stylesheet" href="http://demos.jquerymobile.com/1.2.0/css/themes/default/jquery.mobile-1.2.0.css">
<div id="successtext"></div>
<a data-role="button" id="add">Add</a>

JavaScript

$('#add').click(function(){
    id="223424324";
 $("#successtext").append('<a href="https://www.theurl.com/"'+id+'" data-role="button">The link</a><a href="#" data-role="button">Log Out</a>');
    $('#successtext').trigger('create');
});