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
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
Green/red dot where?
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
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.
You need to post some code so we can see it in context.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yup, just what I needed. Im going to use the if statement. Thanks again, I just needed an starting up point.
Winter
Winter