html - Button inside link doesn't work in IE -


i have sitewiode styling of buttons using html element. buttons submit forms works well. buttons links. therefore use syntax:

<a href="#"><button>link text</button></a> 

this works in browsers except ie, button clicks nothing happens. link isn't followed.

how can work in ie?

don't put button inside link. can style <a> <button> css.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -