I have tabulated data on a page, in the first column is checkboxes. When a user checks multiple boxes the items are strung together, and outputted to a text box (using jquery), please refer to:
The table I am actually using a table similar to :
http://datatables.net/release-datatables/examples/basic_init/zero_config.html
and because the data is spread over multiple pages (loaded via ajax), I lose the checked box values when a user checks a box on another page,
ie. if apples is on the first page has been checked then the user goes to page 2 and checks oranges, the text box would update just to show oranges (but should actually show apples, oranges).
Basically I would like to modify the script so that it would simply read in the content from the text box, and then add the checked values strings (or remove if unchecked) please can anyone help with this?
Thanks
you can have a global variable to maintain the values of your check boxes..I have modified your fiddle check that out..
http://jsfiddle.net/kabichill/TxLWd/