like if I had a function
val = opt;
Can I access the
value from outside the
function or is there a way to access it from PHP code?
posted date: 2009-04-11 23:29:00
Set the value to a hidden field, and read hidden field in your server side code.
<input type="hidden" id="myVariable">
In your function :
document.getElementById((myVariable().value = val;
posted date: 2009-04-11 23:33:00
Considering that you didn(t use
to declare the variable it is available to every function and all code in the global scope and beyond because without the
posted date: 2009-04-11 23:37:00
posted date: 2012-02-13 04:37:00
|select page: « 1 »|