script block in partialview prevents from fire onclick event on IE9
i have a simple partial view with a script block:
<input type="button" onclick="alert('clicked');" value="click me" />
<script type="text/javascript" language="javascript">alert("bla");</script>
when i click on the button the onclick event not fires. when i remove the开发者_JS百科 script block it works. it only happens on IE9 (chrome and firefox are OK). any ides? :\ thanks!
I'm not sure , but move the above the tag , and give it a try !!
精彩评论