Hi,
I am a newbie to JavaScript so please bear with me.
I have 2 related questions please.
1) Is there a simple way of returning the number of rows in an html table in a JavaScript function?
2) If I have an HTML table looking a bit like this:
Name Date Comment
Fred 2006-10-11 some comment
Bob 2006-10-11 another comment
Fred 2006-10-12 foo bar
Is there any way of returning the number of rows in the html table for a given Name, e.g. where Name = 'Fred' ?
ANy help is appreciated.
Thanks,
Peds
I am a newbie to JavaScript so please bear with me.
I have 2 related questions please.
1) Is there a simple way of returning the number of rows in an html table in a JavaScript function?
2) If I have an HTML table looking a bit like this:
Name Date Comment
Fred 2006-10-11 some comment
Bob 2006-10-11 another comment
Fred 2006-10-12 foo bar
Is there any way of returning the number of rows in the html table for a given Name, e.g. where Name = 'Fred' ?
ANy help is appreciated.
Thanks,
Peds