arrays - Fetch values from a table using jquery on basis of a checkbox update -
i fetched date using api , displaying in table using this code:
this resulted in 176 values checkbox
. want if checkbox
state changed should able fetch value , associated td value in array. can me not able think of solution.
here screenshot of output along want achieve:
i'd suggest giving each td element associated value class, can use jquery grab value. suppose gave class name of 'value'. then, try this:
$('checkbox').on('click', getvalue); function getvalue() { var value = $(this).closest('tr').find('.value').text(); }
i hope helps!
Comments
Post a Comment