JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Page Test</title>
</head>
<body>
<input type="button" onclick="displayTable();" value="click"/>
</button>
<div id="tablediv"></div>
</div>
</body>
</html>
JavaScript
displyTable = function() {
alert("hi");
var tablestring = "hihello";
tablediv.innerHTML = tablestring;
}