Quote:but i am new use tell me how i direct copy ajax and use?
No, you should never do that. You can copy code from somewhere, but before pasting to your files, make sure you understand that first. Sometimes, what happens that the code may be having any issues and when you implement that directly, it can cause problems for you.
Just think of one scenario, where money transaction will occur with the code and it only asks you to provide your account details. After you provide that, it does some operations and shows a message to you that it is done.
But at the same time, the amount you transferred may reach anywhere as you have not gone through the code. It may reach some unknown account instead of the account you specified.
Don't worry by this scenario. You just need to have a prior knowledge of the code you are going to implement. At least you will know what it is going to do and you can elaborate the same, if anybody asks to you. Else that is of no use.
Getting Started with AJAX