Put an ID on an input in an iframe

Invalid number, please try again

Here's the id that is now on the input of the iframe:

How to do it

document.getElementById("myframe").contentWindow.document.getElementsByName('credit-card-number')[0].setAttribute("id", "credit-card-number");

Back to CanAdapt Home