How can I echo the 'res' values (returned by a php - mysql) in a text field named "CurrentVal" in HTML?
$.ajax({
type:'GET',
url:'php/myphp.php',
dataType:'json',
success: function(response){
var res = response[0].result,
stu = response[0].student;
//console.log(response);
}
});