Hello,
I am looping through every <td> of a named table and retrieving the first element of each <td> and do something if the first element in the <td> is <a>.
For every <a> element the HREF value will be something like:
<a href="
What I want to do with javascript is after detecting that the first element of the current <TD> is in fact an <a>, I want to get the value of "date" off the HREF string and comput the date range like so:
if date is between 1/2/2006 and 2/22/2006 {Do something}
elseif date is between 2/23/2006 and 6/21/2006 {Do Something}
else if date is between 6/21/2006 and 12/31/2006 {Do something}
Thanks for any help you can swing at me.
I am looping through every <td> of a named table and retrieving the first element of each <td> and do something if the first element in the <td> is <a>.
For every <a> element the HREF value will be something like:
<a href="
What I want to do with javascript is after detecting that the first element of the current <TD> is in fact an <a>, I want to get the value of "date" off the HREF string and comput the date range like so:
if date is between 1/2/2006 and 2/22/2006 {Do something}
elseif date is between 2/23/2006 and 6/21/2006 {Do Something}
else if date is between 6/21/2006 and 12/31/2006 {Do something}
Thanks for any help you can swing at me.