how to load() a template file, then pass it as a variable or do an alert test

danjapro

I am using php, and need to load() this , template content php file into the jquery and pass it to a #div ID to render front-end view.

I am not sure how to load the php file in jquery and then pass it as a variable called repeater which helps build out all the rows combining the template loaded with Ajax (obj) query results.

In the set alert, it pops up as [object Object], no template.
When I write the entire php template content out into jquery as var repeater, it works, but I do not want all that html in jquery. Just load() then read.