.load a php script with an ajax callback inside of the page -


is possible send input via ajax php script , have success callback .load section of displayed page , have php script inside reloaded section display session variable inside label of input?

edit: script feel implemented wrong errors have me fix?

$(document).ready(function() {

$('input1').on('keypress',function(e){  var p = e.which;  if(p==13){          var input1set = $(this);         var input1 = input1set.serialize();          $.ajax({              url:'inputs.php',             type: 'post',             data: input1,             success: function(input1) {                 $('#input1lable').load("tables/table_1.php #input1lable");             }     });      return false; 

});

// repeatable input field code. 

});

so did go wrong?

p.s hope there enough context given know how working in app.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -