Currently, I'm loading the divs into .test1, 2, and 3, as below:
jQuery(function($){
$(".test1").load("/?page=owner_testimonials&gridID=1 #showGrid1Content");
$(".test2").load("/?page=owner_testimonials&gridID=2 #showGrid2Content");
$(".test3").load("/?page=owner_testimonials&gridID=3 #showGrid3Content");});
Right now, I am loading 3 testimonials into the three slots '.test1', '.test2', '.test3', but you can see that the testimonials are not randomly chosen, they are simply pulled in order: the content from testimonial 1 (showGrid1Content) is loaded from within the page where that testimonial comes from (/?page=owner_testimonials&gridID=1).
Instead, I want to load one of the following:
'/?page=owner_testimonials&gridID=1 #showGrid1Content'
'/?page=owner_testimonials&gridID=2 #showGrid2Content'
'/?page=owner_testimonials&gridID=3 #showGrid3Content'
'/?page=owner_testimonials&gridID=4 #showGrid4Content'
'/?page=owner_testimonials&gridID=5 #showGrid5Content'
Randomly into .test1, .test2, and .test3, but I don't want any two of them to be the same (ex. I don't want .test1 to have gridID4 and .test3 to have gridID4 as well).
How do I do this using either jQuery or Javascript?