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 :: webpack bundle analyzer 
Javascript :: how to hide component in react 
Javascript :: how to add variables to an array 
Javascript :: Could not find the drag and drop manager in the context of ResourceEvents. Make sure to wrap the top-level component of your app with DragDropContext 
Javascript :: react native app crashes without error 
Javascript :: javascript change nan to 0 
Javascript :: js string does not contain 
Javascript :: javascript check if file exists on server 
Javascript :: get offset from timezone javascript 
Javascript :: composer require friendsofcake/crud-json-api for cakephp3 version 
Javascript :: createrouter vue 3 history remove Hash 
Javascript :: jquery set inner text 
Javascript :: convert date time to date function javascript 
Javascript :: cannot find module @babel/compat-data/data/corejs3-shipped-proposals 
Javascript :: get object value in node js 
Javascript :: package json scripts multiple commands 
Javascript :: javascript getelementbyid 
Javascript :: addclass javascript 
Javascript :: jquery check if exist 
Javascript :: ignore node modules 
Javascript :: jquery ajax on fail 
Javascript :: ajax done 
Javascript :: javascript currency number format indonesia 
Javascript :: how to use jquery timepicker 
Javascript :: linker call rect native 
Javascript :: express request body undefined 
Javascript :: authfunctions express 
Javascript :: unix timestamp to date javascript yyyy-mm-dd 
Javascript :: react native button top right 
Javascript :: number to word js 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =