Page 1 of 1

Radio button with text and image

Posted: Wed Aug 13, 2014 2:17 pm
by Adrian Stoch

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.


Radio button with text and image

Posted: Wed Aug 13, 2014 4:04 pm
by Kateryna Grynko

Hi Adrian,

You can dynamically add image to radiobutton component:preApperyio("mobileradiobuttonName").find("label").append('Image');/preWhere mobileradiobuttonName is a radiobutton component name.


Radio button with text and image

Posted: Thu Aug 14, 2014 9:22 am
by Adrian Stoch

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?


Radio button with text and image

Posted: Thu Aug 14, 2014 11:17 am
by Evgene Karachevtsev

Adrian,

Sorry, should be this:

codeApperyio("mobileradiobuttonName")&#46;find("label")&#46;append('<img src="http:&#47;&#47; example &#46;com/icon&#46;png">');/code


Radio button with text and image

Posted: Thu Aug 14, 2014 2:12 pm
by Adrian Stoch

Thanks Evgene - perfect again.