i have a json file:
{ \"data\": \"Click\", \"size\": \"Here\" }
and a form:
First name:
You may also use $.get like below;
$.get('your_file.[php/json]',function(d){ $("input[name='firstname']").val(d.data); $("input[name='firstname']").val(d.size); },'json');