When I send an ajax request to the js file as shown below:
function add(lt,ln)
{
$.ajax({
type: 'get',
url: "js/abc.js",
data: {action: "addme", lt: lt,ln:ln},
async: false,
success: function(data){
}
});
}
The question now is, how can I access the 'lt' and 'ln' variables in the abc.js file when this request is sent?
if(action==addme)
{
var lt=set value which is coming from ajax request.
}