popline
popline copied to clipboard
It does not work on the ajax loaded text
Hi, its a great plugin!
- When the page is loaded, when you select text plugin works. When changing text on the page using ajax, plugin also works.
- When the page is loaded, and then the text changes using ajax - when you select text to change the text of the plugin does not work.
How can I fix this?
May likely need to change element selector from $(element).on('event', function() {....}); to $(document).on('event', 'element', function() {....}); This will always allow for selection of ajax loaded content since an ajax load does not change the 'document' element.