Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Php PHP jQuery Example

 
 

Share on Google+Share on Google+

PHP jQuery Example

Advertisement
This page discusses - PHP jQuery Example

PHP jQuery Example

jQuery:  jQuery is a JavaScript library which accentuates interaction between JavaScript and HTML.

Main features of jQuery are as follows:

  • Ajax
  • CSS manipulation
  • DOM element
  • Events
  • Extensibilty
  • Utilities ....etc.

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>

 

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 18, 2011

Related Tutorials

Discuss: PHP jQuery Example  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:2
Murugan
June 18, 2011
UL tag

i have doubt in dynamically creating UL tag using jquery.first time only one UL tag in the web page .if i drag and drop a image put and fix that UL tag as well as two UL tag create? how i do this?please help me....
lovesinghbisht
May 17, 2013
php

wow your script is very good and very nice
DMCA.com