How to add value to text?
And how do you make it stay in this format? for example: ADQ2018060601513610 (20 characters)
Example:
function insertNewSigCdAdq() {
var pkchaves = document.getElementById("txtPkChaves").style;
pkchaves.value = ("ADQ" + (Math.random() * 10000000000));
console.log(pkchaves.value);
}
<input id="txtPkChaves" class="txtPkChaves_adq" name="name_txt" style=" width:100px;" type="text"><br>
<button onclick="insertNewSigCdAdq()"> Teste </button>