I am developing an application using HTML and JQuery (no PHP) and i have two pages, index.html and register.html. At the first page (index.html) you are asked to enter a card number, then click submit. When the user does this i move to the second page where i have a hidden input.
This is the code, index.html
<form id="RegisterForm" method="post" data-ajax="false" id="registerCardForm" action="register.html">
<input type="text" id="cardNumberRegField" type="tel" name="cardNumber" class="required number register" minlength="16" maxlength="16" />
<input name="Submit" type="submit" class="button" value="Register"/>
</form>
register.html
<input id="tfscCardNumber" type="hidden" name="tfscCardNumber" class="readonly" minlength="2" maxlength="20" readonly="readonly" disabled="disabled"/>
So my question how do I load the number in the first page to the hidden input in the second page before the page is fully loaded?