...

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



ajstyles
02-29-2012, 12: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">
<tr>
<th width="80%"> Questions & Time</th>
<th>Status</th>
</tr>
<tr>
<td><% for (int i=0; i < theList.size(); i++) {%>
<tr>
<td><%= theList.elementAt(i)+ " " + theTime.elementAt(i) %>
<% }%>
</td>
<td>Where is the pending goes:</td>
</tr>
<tr>
</table>

DanInMa
02-29-2012, 02: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()

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

felgall
02-29-2012, 06: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)

ajstyles
03-01-2012, 08: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum