1$(document).ready(function(){
2 $('button').click(function(event){
3 event.preventDefault();
4 var name = $('#name').val();
5 var mobile = $('#mobile').val();
6 var address = $('#address').val();
7 var city = $('#city').val();
8 $.ajax({
9 type: "POST",
10 url: "upload.php",
11 data: { name:name, mobile:mobile, address:address, city:city },
12 dataType: "json",
13 success: function(result){
14 }
15 });
16 });
17 });