Hi, I am trying to invoke a script function on my mvc view as follows. But it's not happening. what may be the reason behind it?
<input type="text" id="hdnTemp" value="xyz" onload="test();" />
<script type="text/javascript">
function test() {
alert();
}
</script>
thanks, kapil