I had to change a file suffix from .html to .php so a PHP include works, but after doing that the jQuery does not work any more. Is that normal? Is there any way to keep jQuery working?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it is not normal. I don’t see your code, but I have 2 assumption:
phpfile? Do you call it same way ashtml? If you callhtmlfrom local path(c:/dir1/dir2/file.htlm)andphpfrom server(http://localhost/file.php)then possible reason is path tojQueryphp include? Try to removePHPcode and try again. (withPHPextension)ps. Do you get any jQuery-related errors in your browser?