Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

3 votes
Accepted

Get the contents of a table cell for all selected rows

Calling push() inside an each() loop can typically be simplified with map() Typically when ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
-1 votes

Get the contents of a table cell for all selected rows

Convert to named functions, deconstructed by their operation (single responsibility principle) Use a functional approach to building the string ...
Andrew's user avatar
  • 319
3 votes

Get the contents of a table cell for all selected rows

You can go with a one-liner along with less traversel like this: recipients.push($(this).closest('td').siblings('.email').text()); Your code traversal pattern: VS ...
Death-is-the-real-truth's user avatar

Top 50 recent answers are included