I have a form in which I have taken one text field and also called an iframe inside it and in that iframe there is a text field for Name
. I want to show that Name
into my forms text field on key-up using JavaScript/jQuery. I mean as well as I have entered something into the Name
text field it will show into my input field.
I am calling the iframe from another domain.I have used below code
<script>
var iframe = document.getElementById('progressive');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var usernameTextBox = innerDoc.getElementById('ApplicantInfo1_FirstName');
usernameTextBox.focus();
</script>