In my HTML I have a button located in a div:
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
The Close text is being copied when users double-click my url-output div. Which can be seen here:
<div class="modal-body">
<div id="url-output"></div>
</div>
Relevant Javascript below. Full JS can be viewed here.
$('#url-output').text("http://url.domain.me/" + data.shortID);
So essentially, if the url-output text was something like "www.google.com", the copied text would read:
www.google.com
Close
I've attempted several solutions, such as disabling pointer events, and the suggestions here. But I'm having no luck.
How can I exclude the Close text from my output?