Get All Table Row Values When Checked
Solution 1:
Partial answer - too long for comment
From your earlier question, we understand that each checked row has a quantity_num
input and that you want its user-entered value to be included in the email body alongside the fixed row data, loc
, rp-code
etc.
It appears that sessionStorage holds only the checked state of the rows, not the quantity_num
value. If so, then pagination dictates that quantity_num
value is only available for currently displayed rows - for all other rows, you know only the id of the checked rows, not their quantity_num
value.
Therefore, the first thing to do is to ensure that "id|quantity_num" pairs are stored (in sessionStorage). Other data, loc
, rp-code
etc. is associated with the id
and can be retrieved from the server and used either client-side or (preferably) server-side to compose the email body.
Post a Comment for "Get All Table Row Values When Checked"