Link to home
Start Free TrialLog in
Avatar of glepiza
glepiza

asked on

replace html option value by an image

Dear experts,

I am creating an html survey and I would like to replace an option value by an image. I mean, if the user choose Yes, instead of outputting the string Yes, the survey should show a green dot. On the other hand if the user chose no, it should show a red dot.

Could you please help me with that?

Attached goes a screenshot with the source code for reference.

thanks in advance,

Winter
Captura-de-pantalla-2013-09-30-a.png
Avatar of Gary
Gary
Flag of Ireland image

Green/red dot where?
Avatar of glepiza
glepiza

ASKER

It should go in the output form. If the user choose yes, the output should show a greed dot. like the attached image.
example.png
I don't know how one relates to the other - is this on the same page?
You need to post some code so we can see it in context.
ASKER CERTIFIED SOLUTION
Avatar of Insoftservice inso
Insoftservice inso
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glepiza

ASKER

Yup, just what I needed. Im going to use the if statement. Thanks again, I just needed an starting up point.

Winter