How can i access a js value in post response?
<p>I am making a jquery post request to obtain a part of the html code from server. There is a file on server get_info.php which prints html code for different requirements. I am using following code to do this :</p>

<pre><code>function check(inf_type) {
    $.ajax({
        type: 'POST',
        url: "get_info.php",
        data: { "sequence_no" : 1 },
        success: function(data) {
            // how can i use value of variable "inf_type" here.
            // here, the variable "data" contains HTML code.
        },
        dataType: 'text'
    });
}
</code></pre>

<p>the function check() accepts a parameter <strong>inf_type</strong> which contains random strings according to which, server recognize the html code to print. Now, i want handle the POST response according to this <strong>inf_type</strong>.
How can i access the value of <strong>inf_type</strong> variable in POST response function? The function check() is called more often, thats why i can not put the <strong>inf_type</strong> variable value in any global variable.
What can i do to achieve that?
Please guide me. thanks in advance.</p>
