How to paste data from clipboard to datatables using js?

How to paste data from clipboard to datatables using js?

ldtri0209ldtri0209 Posts: 1Questions: 1Answers: 0

Hi all,
Please help me.
I want to known we can paste data from clipboard to datatables using javascript.
What are solution we have?
Thanks

Answers

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    You could have a simple textarea on which you listen for the paste event. When that event occurs get the data from the input and use the DataTables API to add the rows (rows.add() for example).

    Allan

This discussion has been closed.