View Full Version : Where to put the <ol> &&</ol> tags in the javascript??

02-29-2012, 01:20 PM
Where to put the <ol>&&</ol> tags so everytime i run the javascript it numbers each indivdiual items which the javascript is looping.

<table border="2"table align="center" cellpadding="40">
<th width="80%"> Questions & Time</th>
<td><% for (int i=0; i < theList.size(); i++) {%>
<td><%= theList.elementAt(i)+ " " + theTime.elementAt(i) %>
<% }%>
<td>Where is the pending goes:</td>

02-29-2012, 03:28 PM
, what language is that? It looks liek you are trying to mix classic ASP with javascript... and possibly jQuery since you are using .size()

02-29-2012, 07:17 PM
I am just using .java to calling in a function and html for the website coding.

02-29-2012, 07:20 PM
You have to put the entire loop inside of the one td tag and then wrap it inside of the ol tag. Not sure why you need the table though since a list isn't usually an element within tabular data. If it is tabular data then you probably need to repeat the loop for the list in every td in the column or row (depending on how the data is arranged)

03-01-2012, 09:26 AM
Could you please demostrate with my coding above .I have try that and it doesnt seem to work . A million thanks in advance.