I am trying to load a portion of a page using jquery .load(), the the problem is, the div that I am trying to select is a variable
$('#additemsubmit').click(function(event){
event.preventDefault();
var location = $(this).parent();
var reload = '#' + $(this).parent().attr('id');
$(location).load("/index.php reload");
});
It seems I cant use variables for "location" and "reload"