Adrian Stoch
Posts: 0
Joined: Thu Jul 31, 2014 3:09 pm

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Radio button with text and image

Hi Adrian,

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

Adrian Stoch
Posts: 0
Joined: Thu Jul 31, 2014 3:09 pm

Radio button with text and image

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Radio button with text and image

Adrian,

Sorry, should be this:

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

Adrian Stoch
Posts: 0
Joined: Thu Jul 31, 2014 3:09 pm

Radio button with text and image

Thanks Evgene - perfect again.

Return to “Issues”