Ajax PHP JQuery ⇐ Php

Кемеровские программисты php общаются здесь
Anonymous
Ajax PHP JQuery

Сообщение Anonymous »

У меня есть вызов AJAX к событию размытия txt_RollNo, чтобы получить std_name,Class,age from database and fill it in txt_name,txt_class,txt_age.

В одном вызове можно узнать имя,class,age все целиком в массиве или любое, как его разделить.

$("#txt_RollNo").blur(function(){
$.ajax({
url:'getSudent.php',
data:'stdID='+ $(this).val().trim(),
success:function(array_from_php)
{
//but here i m receiving php array, how deal in jquery
//$("#txt_name").val(array_from_php);
//$("#txt_Class").val(array_from_php);
//$("#txt_age").val(array_from_php);

}
})
});




getSudent.php отображает массив, как показано ниже



Подробнее здесь: https://stackoverflow.com/questions/115 ... php-jquery

Вернуться в «Php»