I
I
Ivan Lykov2018-02-20 18:38:38
JavaScript
Ivan Lykov, 2018-02-20 18:38:38

How to copy text output from Web SQL?

Good afternoon, I ran into a problem.
I made a local Web SQL database, entered 12 records there in the form of small texts.
Then I display it on the page in such a way.
5a8c41448ba54596479506.png
When you click on the button (red pointer), the text that is stored in the field (green arrow) should be written to the buffer, tobish copy. But everything would be fine, it does not want to copy it either.
I tried to statically install one entry
5a8c3fd1c04fe021665570.png
. Here it copies everything as it should, without problems.

How to make it so that after output from local storage, you could copy the text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-02-21
@vaajnur

put a callback on the button after rendering the DOM.

$(function(){
  // твой колбек
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question