Hey!
Thanks for the reply. I was thinking yesterday about the same solution.
I placed this in the header of the theme:
<script type="text/javascript">
function myFunction() {
document.getElementById("age-gate-m").value = "01";
}
</script>
Doesn’t work.
I then placed the code in the age-gate-public-display.php file… Doesn’t work.
I tried adding it in the input-month.php file. Same result.
Then i tried this code:
<script type="text/javascript">
var textnode = document.createTextNode("01");
document.getElementById("age-gate-m").appendChild(textnode);
</script>
Obviously, nothing.
If you can spare 2 minutes to help (pretty sure i am writing the syntax wrong)…
Thanks a lot ??
LE. I also tried creating 2 vars, one for the month, one for the text and then tried appending on to the other. Nothing :((((
-
This reply was modified 5 years, 7 months ago by Mihai.