Radio button with text and image
Hi, I would like to add an image to each choice in a radio button list and also include text for each choice. I can easily do 1 or the other, but struggling to do both together.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi, I would like to add an image to each choice in a radio button list and also include text for each choice. I can easily do 1 or the other, but struggling to do both together.
Hi Adrian,
You can dynamically add image to radiobutton component:preApperyio("mobileradiobuttonName").find("label").append('
');/preWhere mobileradiobuttonName is a radiobutton component name.
Thanks Katya, my apologies for the newbie response, but I am bit confused.
In the append part of the statement, how I am entering the image to show?
Adrian,
Sorry, should be this:
codeApperyio("mobileradiobuttonName").find("label").append('<img src="http:// example .com/icon.png">');/code
Thanks Evgene - perfect again.