I'm using anchors as links, and also I'm binding the enter/return key to submit a form, like this:
$("form[name!=smsform]").bind("keyup", function(e){
if(e.keyCode == 13){
$(this).submit();
});
$("a[title=submit]").click( function(){
$(this).parents("form").submit();
});
However the form submits twice when clicking enter/return using the code above, I need to merge the two snippets - anyone know how to go about this?