Safari form.submit() does not post input type="submit" name and value
Hello,
trying this code in Safari the form.submit() function does not post the name and value of the input type submit named "send". Changing "submit" with "button" seems to work.
<form id="test-form" name="test-form" action="test.php" method="post">
<input type="text" name="name" />
<input type="submit" name="send" value="send" onclick="send_form()" />
</form>
<script type="text/javascript" >
function send_form(){
$('#test-form').submit();
}
</script>
In Chrome and Firefox the post is:
[name] =>
[send] => send
In Safari the send name and value are not posted:
[name] =>
Is this a bug or i did something wrong?
Thank you for your support.