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 :: deploy vue js to shared hosting 
Javascript :: validationResult is not defined 
Javascript :: form submit event get button 
Javascript :: install stripe to react/nodejs - typescript 
Javascript :: routes in node js 
Javascript :: polling in js 
Javascript :: vanilla javascript change background color 
Javascript :: js stairs algorithm 
Javascript :: how to print in javascript 
Javascript :: reducer in react example 
Javascript :: leaflet circle get bounds 
Javascript :: space in string using if in jquery 
Javascript :: javascript explode space 
Javascript :: begins_with node js AWS dynamodb sort key 
Javascript :: use get_json in jstree example 
Javascript :: active navbar in page reactjs 
Javascript :: how to remove property from object javascript 
Javascript :: axios patch 
Javascript :: math random js 
Javascript :: node app listen change ip 
Javascript :: message delete discord.js 
Javascript :: js dictionary to extract the same key bvalues 
Javascript :: write to file but dont overwrite fs.writeFile node 
Javascript :: display date in javascript 
Javascript :: discord js lockdown command 
Javascript :: editting collection in firebase firestore 
Javascript :: antd react native 
Javascript :: javascript toggle button 
Javascript :: debouncing javascript 
Javascript :: onload of modal jquery function 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =