0

I am new to JQuery so i have to ask this question. I have to get the value of undermentioned code into a php file.

  jQuery(function($){

    var textover_api;

    // How easy is this??
  
    $('#target').TextOver({}, function() {
      textover_api = this;
  
    });

I want to get the text written by this code to the next php page. how can i do that. please help

1 Answers1

0

Sending data from client to server using jQuery (Javascript) usually used to send without refreshing the whole page. This called AJAX

There are several sending methods to do it, the most popular are: POST & GET

A few examples:

GET request with jQuery

POST request with jQuery

Sending form data using AJAX

POST vs GET in AJAX

Write me if you need more explanation

Community
  • 1
  • 1
Marina
  • 784
  • 1
  • 15
  • 23
  • Marina K. like the example given in this page https://api.jquery.com/jquery.post/, i want to pass the form value to the next php page – Usman Ahmed Mani Oct 24 '15 at 15:59
  • @UsmanAhmedMani If you need to send data to _next php page_ then you can just use simple form - submit, where action of that form is your _next php page_ [simple form example](http://www.w3schools.com/html/html_forms.asp) – Marina Oct 24 '15 at 19:52