4
I am creating a CPF generator, which when the person generates, appears an option "Copy", but I would like to know how to implement the functionality of copying the content that is presented.
Example HTML code:
<span id="numerosx">56262662</span>
<button id="btcopiar">COPIAR</button>
Note: Pure Javascript.
Nothing to do, kkkkkk...
– Alexandre Lopes
console.log(document.getElementById('numerosx').innerHTML)
resolves?– rray
I didn’t understand well, kkkkk, you could answer :) I’m not very good with JS.
– Alexandre Lopes
@rray responds there :)
– Alexandre Lopes
Is that what you wanted? by the question implied something else.
– rray