Cannot get images to load inside a collapsible.
I am creating a rating functionality, in which a user submits a rating 1-5 and that value is stored in DB. When searching for a rating I want to convert the value above into a star 1 star...5 star. I have images uploaded in the media manager and based on the value I get on the query I show the relevant image.
As you see below my label is grabbing the value ok from the DB and populates it all the way down but not the image which only appears on the first block. The image are invisible so I am doing image.show based on the value. See the code below..I have also played with different lines of code and nothing has solved it..Any hints?
code
var theRating = Apperyio("userRatinglabel").val();
//SHow image
if (theRating == "2"){
Code: Select all
//Appery('redimage').attr('src', "redimage.png");
Apperyio('redimage').show();
//return '{"redimage":"'+value+'"}';
} else {
//Appery('blueimage').attr('src', "blueimage.png");
Apperyio('blueimage').show();
} /code