I have a JavaScript file with numerous JavaScript methods in it (.js extension, not.html).
I want to invoke a PHP function from within a JavaScript function in a PHP file that only contains other PHP functions.
- Is that possible?
- Would I need to "include" the .php file containing the PHP function in the .js file?
- How would I do that?