html - when change input type=radio to input type=image not work -


good day, i'm trying replace code

<input type=radio name="y" value="1" onclick="this.form.submit()">work <input type=radio name="n" value="1" onclick="this.form.submit()">broken 

with code

<input type=image name="y" value="1" onclick="this.form.submit()"><img src="/ar/serials/images/work.png"> <input type=image name="n" value="1" onclick="this.form.submit()"><img src="/ar/serials/images/broken.png"> 

but submit doesn't work (no thing happen when click images)

you can add src attribute directly input tag.

example:

<input type=image name="y" value="1" onclick="this.form.submit()" src="/ar/serials/images/work.png"/> 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -