How can I pass the variables in the parameters of ajax call. Below is the example to clarify my question:-
function updateSingleParameters(name,varName, varValue)
{
$.ajax({
    type: 'POST',
    url:name,
    data: {
        varName: varValue
    },
    success: function(data, status){
        alert("Data: " + data + "\nStatus: " + status);
    }
});
I need varName also to be treated as a variable but it is treated as a constant when I execute the script.
Kindly suggest.
Thanks in advance.
 
     
     
     
    