I'm just learning jquery , The thing is that how can I make jquery and php contact each other in one single page ? if there is an example I really appreciate it!
kshahnazari
0
Newbie Poster
Recommended Answers
Jump to PostDepends on the direction of communication and whether you want communication after the page has left the server.
You can include php inside js scripts for scripts running on page load...
var myVar =<?php echo $hisVar;?>;
However, you can't do the reverse as javascript is run …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.