I'm starting taking a look at some Javascript and I can't figure out what's wrong here. When I take out the submit() line all works fine and the textarea takes focus but as soon as I add it back in it will run everything except the focus() function?
//ENTER SEND BUTTON
function keyPress(e) {
var key = e.keyCode? e.keyCode : e.charCode;
if(key == 13) {
var f = document.forms["myform"];
f.send.disabled = true;
f.submit();
$.post('', {name: name}, function(data) {
document.getElementById("message").value = '';
document.getElementById("message").focus();
});
}
}