I am experiencing some confusing side effects when trying to handle a submit event. Instead of processing the jquery event handler, the script xyz.php is being called.
<script type = "text/javascript"> $(document).ready(function(){ $("#myForm").submit(function() { alert "It works (or not)."; return false; }); }); </script> <div id="contact"> <form action="xyz.php" method="post" id="myForm"> <input type="text" class = "webform" size="30" id="nam" name="nam" ></input> <input class = "webform" type="submit" name="submit" id="send" value="send" ></input> </form> </div> This is a little bit confusing. I dont see what I am doing wrong. Does anyone has an idea ?? Any help is apreciated. Thank you, so much, in advance...
</input>