- The list items are being written OUTSIDE of the table.
- The 'radius+5' seems to make the loop run about 500 more times.
Here is my code portion:
$("#rofl").html('<table id="ready" class="ready"><th>Radius</th><th>Circumference</th><tr><td class="clicked">');
for (var intNum=val; intNum<=5+radius; intNum++)
{
console.log(intNum);
if (intNum != val+5)
{
$("#rofl").html($("#rofl").html() + " " + intNum + " </td><td class='clicked' ison='n'>");
intRad = intNum * 2 * Math.PI
$("#rofl").html($("#rofl").html() + " " + intRad + " </td></tr><tr><td class='clicked' ison='n'>");
}
else
{
$("#rofl").html($("#rofl").html() + " " + intNum + " </td><td class='clicked' ison='n'>");
intRad = intNum * 2 * Math.PI
$("#rofl").html($("#rofl").html() + " " + intRad + " </td></tr>");
}
}
$("#rofl").html($("#rofl").html() +'</table>');

New Topic/Question
Reply


MultiQuote


|