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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -