I'm writing a script that loads different content based on the previously clicked links. (For an Android app). I'm having problems getting data to pass to my call back function.
function load_current_div(id, refer){
$('#current-div').hide(function(){
$('#current-div').html('');
$('#current-div').load('content/'+id+'.html', function(){
alert(id);
});
});
$('#current-div').show();
}
I cannot get the id to contain a value when alerted.