CodePudding user response:
Add a class or id to td, then $(" class "). The text ()CodePudding user response:
Your question is too general,To obtain the values in the td is simple, find the need to then call td elements. The text () or HTML (),
The key is how to find need td element,
If td element has a unique id or class can use the
Td# $(" id "). The text () and $(" td. Class "). The text ()
If we can know that td in position in the table, such as access to line 3 column 2
$(" # id> table; tbody> Tr: the NTH - child (3) & gt; Td: NTH - child (2) "). The text ()
If you want to get in the event of a td elements in the same line another td element
$(this). The closest (" tr "). The find (" td: NTH - the child (2) "). The text ()
CodePudding user response:
Why calculated value is undefined and not my table shows the value ofCodePudding user response: