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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -