javascript - ajax in TF in html? -


How can I echo in a ' res ' value (back by a php - mysql) Am a text field named "CurrentVal" in HTML?

  $ Ajax ({type: 'GET', url: 'php / myphp.php', datatype: 'json', success: function response) {var res = response [0]. Results, stu = feedback [0]. school; //console.log(response);}});  

  $ Ajax ({type: 'GET', url: php / myphp.php ', datatype:' jason ', success: function (reaction) {var res = response [0]. Interesting, stew = reaction [0]. Science; $ ('# CurrentVal'). Val (res); //console.log(response);}});  

Comments