> $.ajax({ > type: "POST", > url: "test.php", > data: "query:edit&id="+idval, > dataType: "json", > success: function(data){ > $("#name").val(data.name); > $("#surname").val(data.surname); > } > });
Very easy many thanks :) -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay