I just want to make a micro blog here. Just a tiny lil blog.
Internet Explorer Does Not Submit Form on Enter
Correct! Instead, I load my page with this jquery
1 2 3 4 5 6 | $('input').keydown(function(e){ if (e.keyCode == 13) { $(this).parents('form').submit(); return false; } }); |
Button Element Not Submitting in Internet Explorer
Correct! Mainly because I was lazy.
But in FireFox
In IE – don’t forget to add type=”submit”
1 2 3 4 5 | <!-- wrong --> <button>Works in FF</button> <!-- right! --> <button type="submit">Works and is probably what you SHOULD do</button> |
That is all.
Tags: html, javascript, jquery















