Move a HREF value from one TD to a sibling TD, then hide the original TD
Hi all.
I have a table which contains multiple rows. The table has an unknown number of columns.
One of the TD's in the row has an 'A' tag containing the HREF property "
/_layouts/DocIdRedir.aspx? somenumber" Let's call this TDSource and ASource
A sibling TD in the same row which has a class of
ms-vb-title contains 2 links - the 'A' tag I want to update the HREF property of is in a DIV with a class of
ms-vb itx . Lets call this TDTarget and ATarget.
The highlighted components are unique per row. I need to get the HREF value from ASource in each row and update the HREF value for ATarget in the same row.
It's my first day on jQuery - I understand that I can use children() to get the TR containing the relevant TD's, and I can see how to use :contains() to identify the specific source HREF property, but I can't understand how to link these bits of information together to do what I want.
I'm happy for someone to show me what code would work - I'd be ecstatic if someone could walk thru the code and describe how it worked.