I will send value type ajax but when data return come back will return json How to append value to input text.
$.ajax({
type: "POST",
url: "find_data.php",
data: "location=" + location_code,
success : function(data){
$.each(data, function(key, values){
$('#card').val(values.card);
});
},
dataType: "json",
error:function(error){
alert(error);
}
});
Sorry for my english.
This is will show like this =>

console.log(data)console.log(values.card);after$('#card').val(values.card);line and check into console.