JSFiddle - React, Tailwind, and code Playground
HTML
<table id="myTable">
<a href="http://www.google.com">NAVIGATE AWAY with this link, then click brower back</a>
<p><b>YOU WILL THEN SEE VALUES IN CELLS WHERE THEY DON'T BELOW</b></p>
<p>This test created by Galen Hollins (g h o l l i n s @ g m a i l . c o m)</p>
<tr>
<td> <input id="one_rowOrder" value="one"></td>
<td> <input id="one_A" /> </td>
<td> <input id="one_B" /> </td>
</tr>
<tr>
<td> <input id="two_rowOrder" value="two"></td>
<td> <input id="two_C" /> </td>
<td> <input id="two_D" /> </td>
</tr>
<tr>
<td> <input id="three_rowOrder" value="three"></td>
<td> <input id="three_E" /> </td>
<td> <input id="three_F" /> </td>
</tr>
</table>
CSS
input { width:50px; }
JavaScript
// Fire when the document is ready
$(document).ready(function() {
alert("ready");
//resetVals();
updateRowNums(); // IF YOU COMMENT OUT THIS LINE, NO WEIRD FORM POPULATION OCCURS
});
function updateRowNums() {
$('#one_rowOrder').val(0);
$('#two_rowOrder').val(1);
$('#three_rowOrder').val(2);
}