How can i call a javascript function from a php file? -


this question has answer here:

in php-code have got variable $password, want edit in javascript function located in .js file. means passing $password parameter function , saving return value variable.

how can this?

i know can try add php code:

echo '<script type="text/javascript"> drawchart(); </script>'; 

and access script, should try ajax.

hope works you


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -