How can i call a javascript function from a php file? -
this question has answer here:
- how call javascript function php? 11 answers
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
Post a Comment