Get single column data and add to textarea

Get single column data and add to textarea

chrisjameschrisjames Posts: 4Questions: 0Answers: 0
edited July 2012 in General
I have a table of data using your datatables plug-in (awesome plug-in!!) and I need to have the data from the 'email' column dynamicly added to a text area everytime the table is filtered or updated.

Can this be done? If yes then how?

I have looked through all the documentation on the website and cant find this.

Thanks C

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Use fnDrawCallback to run a function that will fire whenever the table is updated. Then perhaps use fnGetData or the plug-in fnGetColumnData API methods to get the data and stick it into a text field using standard DOM / jQuery methods.

    Allan
  • chrisjameschrisjames Posts: 4Questions: 0Answers: 0
    Thanks Alan

    fnGetColumnData was perfect

    C
This discussion has been closed.