how to insert an image with a radio button in a form? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to insert an image with a radio button in a form?

17th Oct 2016, 7:31 PM
Tarang Mittal
Tarang Mittal - avatar
3 Answers
+ 2
Using the example from the lession: <input type="radio" name="gender" value="male" />Male <br /> <input type="radio" name="gender" value="female" />Female <br /> You would input the <img src> tags on the last male and female of each like so. <input type="radio" name="gender" value="male" /><img src="Male.jpg" /> <br /> <input type="radio" name="gender" value="female" /><img src="Female.jpg" /><br > Just make sure your image is in the working directory.
25th Oct 2016, 9:51 PM
WhiteFlare
WhiteFlare - avatar
0
how do u do this:|
19th Oct 2016, 6:22 PM
Corey McKenzie
Corey McKenzie - avatar
- 3
Thanks...I also found the way
17th Oct 2016, 8:37 PM
Tarang Mittal
Tarang Mittal - avatar