Hi,
I hand code HTML / XHTML static documents. My problem is that when I have a a sorted list, every time I add a row I have to retype all the sequence number again on subsequent rows. Is there any way to automate the serial number column?
Please note that I don't need any server side scripting and there is no database at all, otherwise doing this is much easy.
I tried with <ol> but that didn't work
Codes
<tr>
<td>S#</td>
<td>name</td>
<td>Organization and so on</td>
</tr>
<tr>
<td>01</td>
<td>a</td>
<td>xyz Inc</td>
</tr>
<tr>
<td>02</td>
<td>c</td>
<td>co co limited</td>
</tr>
and so on
i tried
<ol>
<tr>
<td>
<li>-</li>
</td>
<td>name</td>
<td>Organization and so on</td>
</tr>
<tr>
.................................
</ol>
but it didn't work.
any idea ? may be we can use Javascript but if its possible with pure HTML / XHTML then it would be great.
please note that I make web site accessible and try to avoid any complex things in the page, even not like to use javascript.
thanks
Dani