Can I access the value of a javascript function from outside the function like if I had a function
<script> function test_tree(opt) { val = opt; } </script>
Can I access the val value from outside the test_tree function or is there a way to access it from PHP code?
I need to be able to access a value from the javascript code in PHP code.
Set the value to a hidden field, and read hidden field in your server side code.
In your function :