Check out the deserialize plugin. It does exactly what you need: http://www.reach1to1.com/sandbox/jquery/testform.html
On 7/6/07, Jean <[EMAIL PROTECTED]> wrote:
I think .getJSON better for this dont? $.getJSON('teste.php',{query: 'edit', id: idval}, function(data){ $("[EMAIL PROTECTED]").val(data.nome); }); On 6/29/07, Massimiliano Marini <[EMAIL PROTECTED]> wrote: > > > $.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 > -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
-- Reach1to1 Technologies http://www.reach1to1.com http://on2.biz [EMAIL PROTECTED]