Form Submit problem
Form Submit problem
I've tried to make a form getting send by a standard button,
but it didn't went well.
In the following code, the alert was executed but the form wasn't send.
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8-i" />
<title>Untitled</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#x").click(function(){
alert("getting done..");
$("#wow").submit();
//this didn't work either: $("form").submit();
return false;
});
});
</script>
</head>
<body dir="rtl">
<form method="post" action="send.php" id="wow">
<input type="button" value="send" id="x" />
</form>
</body>
</html>
I would like to get some help please. thanks.