PHP jQuery Example
jQuery: jQuery is a JavaScript library which accentuates interaction between JavaScript and HTML.
Main features of jQuery are as follows:
In this tutorial you will come to know about basic feature of jQuery with the help of an example.
First of all we need to download jquery.js (latest version ) file from www.jquery.com and place this file into the directory where you will develop the php files.
Example:
<
html><
head><
script type="text/javascript" src="jquery.js"> </script><
script type="text/javascript">function
dispContent(){
$.ajax({
url:
"jquery.js",success:
function(data){
$(
"#content").html(data);}
});
}
</
script></
head><
body><
p><
center><
input type="button" value="click" onclick="dispContent();"><
br/><
textarea id="content" rows="10" cols="50"></textarea></
center></
body></
html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: PHP jQuery Example
Post your Comment