Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ajax jquery

$(document).ready(function(){
$('#btnadd').click(function(e){
    e.preventDefault();
   var nm =$('#nameid').val();
   var em =$('#emailid').val();
   var pas =$('#passid').val();
   var  mydata={name:nm,email:em,password:pas};
 $.ajax({
    url: 'insert.php',
    method:'post',
    data:mydata,
    success:function(data){
      console.log(nm);  
    }
 });
});
});
Source by api.jquery.com #
 
PREVIOUS NEXT
Tagged: #ajax #jquery
ADD COMMENT
Topic
Name
1+7 =