i am going to try the jQuery code:
$.post("test.php", { category: "Ubuntu", newname: "Hash" },
function(data) {
alert("Data Loaded: " + data);
});
but in json data i want to use some data taken from a formfield. i used to grab the data using getElementById('fieldname').value. How to pass variable to json query ?