Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery post

$.post( "test.php", { name: "John", time: "2pm" })
  .done(function( data ) {
    alert( "Data Loaded: " + data );
  });
Comment

jquery post

$.post("url/to/php_file.php", {query1:'value', query2:'value'}).done(function (data) {
  // your code
  console.log(data)
});
Comment

$post in jquery


$.ajax({
    method: "POST",
    url: "some.php",
    data: { name: "John", location: "Boston" }
}).done(function( msg ) {
    alert( "Data Saved: " + msg );
});

Comment

$post in jquery

$(function(){
    $('#myForm').on('submit', function(e){
      e.preventDefault();
      $.post('http://www.somewhere.com/path/to/post', 
         $('#myForm').serialize(), 
         function(data, status, xhr){
           // do something here with response;
         });
    });
});
Comment

jquery post

$.post("demo.php",{id:1})
  .done(function(data) { console.log(data) })
  .fail(function() { console.error("Error") })
Comment

post jquery

$.post( "ajax/test.html", function( data ) {
  $( ".result" ).html( data );
});
Comment

jquery post

$.post( "test.php", { name: "John", time: "2pm" } );
Comment

PREVIOUS NEXT
Code Example
Javascript :: two array in one js 
Javascript :: sort array object 
Javascript :: regex find first instace 
Javascript :: node filesystem change directory of a file 
Javascript :: nodemon watch extensions 
Javascript :: how to empty a filled input in cypress 
Javascript :: use of .json() in javascript 
Javascript :: javascript round number to 5 decimal places 
Javascript :: parse time in javascript 
Javascript :: javascript remove query string from url 
Javascript :: js get day name from date 
Javascript :: for in loop key 
Javascript :: functional component how to add to existing array react 
Javascript :: react chart js 
Javascript :: javascript loop x times 
Javascript :: ngrok live port vue js 
Javascript :: sort arrays according to first array js 
Javascript :: how to make fake binary 
Javascript :: sqrt javascript 
Javascript :: list of higher-order functions javascript 
Javascript :: deduplicate array javascript 
Javascript :: useeffect react example 
Javascript :: dropdown validation using jquery 
Javascript :: using fetch api 
Javascript :: https error response with status 200 angular 
Javascript :: js base64 encoding 
Javascript :: puppeteer set download path 
Javascript :: match the pattern in the input with javascript 
Javascript :: discord bot javascript 
Javascript :: onchange value in hidden input 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =