I have the following link running fine in all browsers except IE8. Does the code in the href override the onclick attribute? In IE8, the href gets executed but the onlick does not. Can anyone help?
<a href="javascript:void(0);" type="submit" onclick="$('#loginForm').submit();">Log in</a>
Why not use something like this?
Then using javascript (with the jQuery library)
The reason i suggest this is because using inline JavaScript is not good practice.
Have a read here to see why -> http://robertnyman.com/2008/11/20/why-inline-css-and-javascript-code-is-such-a-bad-thing/