i'm stuck in a problem with a script js. This is the condition:
var stampProd = "?php $stampProd = '10001'; ?"; function valiAnswPos(){ if (document.getElementById("positive").checked = true) { document.getElementById('add-to-cart-stamp').innerHTML = stampProd; }
The problem is that when i reload the page and this code is read immediately and i would like that php code was shown and read by only when i checked on radio button. Because when i reload the same page and go to options of my browser -> code html i read all code of script js and in this case i would that this script is read only i checked radio button.
This is possibile with called asynchronous or an if with PHP?
Thanks for any help.