very easy using jquery:
$(document).ready(function(){
$("table tbody tr").each( function(i) {
$("td", $(this)).eq(0).html(i+1);
});
});
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Paul Ihrig wrote:
> i have a bit of css, that displays row number, excluding header.
> works in FF but note iE ..
>
> table { counter-reset: line-number; }
> td:first-child:before {
> content: counter(line-number) ".";
> counter-increment: line-number;
> padding-right: 0.3em; }
>
>
> is there a way using coldfusion or JS/jquery to display the row number of a
> table?
> independent of a recordset...
>
> thanks
> -paul
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4