Q:

How do I include a $() element inside a .load();?

I'm trying to print some PHP content inside a simple Javascript call. 
The first one I got, but I have 2 vars to include, and one of them, must to be inside a .load().
I'll put the code bellow for a better understanding:
<?php

$loadclass = 'filtersin';
$load_address = 'recebimento-filter';
$modal_ID = 'FilterModal';

?>

The JS calling (and what I'm trying to do):
<script>
$(document).ready(function(){
    var loadclass="<?php echo '.', $loadclass; ?>";
    var load_address="<?php echo $load_address, '.php' ?>";
     $(loadclass).load("dialogs/filter_group/",$(load_address) );

});
</script>

A:

Change
 $(loadclass).load("dialogs/filter_group/",$(load_address) );

To
 $('.' + loadclass).load("dialogs/filter_group/" + load_address );

loadclass is now a class. Notice the .
Appended load_address properly

Please note.

Description: Load data from the server and place the returned HTML into the matched element.

So, if dialogs/filter_group/recebimento-filter does not return HTML it won't work as expected.
To fix this you can add a rewrite rule to .htaccess

