input.insertAdjacentHTML('afterend', '<div class="val-wrapInput"><div class="val-wrapSuccess">...</div>...</div>'); input.nextSibling.insertBefore(input, input.nextSibling.firstChild);