+ 2

is it possible to use JavaScript and php in same page?

7th Jul 2016, 2:42 AM
Pravin Sonar
Pravin Sonar - avatar
3 Answers
+ 3
Yes you can. The primary objective here is to allow the javascript yo execute only after the html page is loaded. You can do this by writing as follows $(document).ready (function() { // some code here });
7th Jul 2016, 1:57 PM
Midhun Mathew
0
thank you Midhun Mathew.
7th Jul 2016, 2:32 PM
Pravin Sonar
Pravin Sonar - avatar
0
ya just you must echo js script by php to load on page
9th Jul 2016, 5:58 AM
HamidReza GHolami
HamidReza GHolami - avatar