Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    The selector here $("#output_table Value") looks odd. There's no <Value> element in your HTML? Also, when is this script executed? Commented Feb 14, 2020 at 21:07
  • here you can find some useful solutions: stackoverflow.com/a/47484187/11107787 Commented Feb 14, 2020 at 21:08
  • I believe your table in the example is not complete, are values somewhere in <tbody/>? Commented Feb 14, 2020 at 21:09
  • You can't select cells by using the text from the column header, if you want all the cells in that column, you have to refer to the column by number `$('#output_table tbody td:nth-child(2)'), or better yet, if you are controlling the html, tag all the cells you want to add together with the same class to make selecting them easier. Commented Feb 14, 2020 at 21:11
  • @ischenkodv I have added the JS that populates the table to my question! Commented Feb 14, 2020 at 21:13