JSFiddle - React, Tailwind, and code Playground

by CoolBuys1290

HTML

<!DOCTYPE html>
<html>
<head>
    <title>Testing</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
       <table id="myTable">
   <tr>
    <td>Alfreds Futterkiste</td><td>It is .</td>
  </tr>
  <tr>
    <td>Text</td><td>It is what it is.</td> 
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td><td>It is </td>
  </tr>
</table>
<script>
var variable = document.getElementById("myTable").rows[0].cells[0].offsetWidth;
$.ajax({
   url: 'test.php',
   data : variable,
   method: 'POST',
   success: function(response) {
      document.write(response);
    }
});
</script>
</body>
</html>