JSFiddle - React, Tailwind, and code Playground
by Hifni Nazeer
HTML
<div id="onediv">test</div>
<input type="button" value="clickme"/>
JavaScript
$(document).ready(function () {
alert("hell0");
var data = {
"success": true,
"value": {
"R1": 23107,
"R2": 587,
"R3": 207,
"R4": 128,
"R5": 515
}
};
var arrForTable = [];
var itemRow = {};
itemRow["1 to 2.5 Million"] = response.value.R1;
itemRow["2.5 to 5 Million"] = response.value.R2;
itemRow["5 to 7.5 Million"] = response.value.R3;
itemRow["7.5 to 10 Million"] = response.value.R4;
itemRow["10 Million and Above"] = response.value.R5;
arrForTable.push(itemRow);
//var htmlTxTable = buildHtmlTable(arrForTable, 'tableOrganizationPortfolioDistribution');
$("#onediv").html(arrForTable);
});