Por ejemplo os pongo este ejemplo: Quiero que cuando pulse el submit me haga el alert y nada mas:
Código:
<html> <head> <title>Formulario dinamico</title> <script src="jquery/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function (){ //alert("READY"); $("#formid").submit( function (){ alert("SUBMIT"); }); }); </script> </head> <body> <form id="formid" method="post" action="procesaajax.php"><br/> Nombre * <input type="text" name="nombre" /><br/> Email * <input type="text" name="email" /><br/> Empresa <input type="text" name="empresa" /><br/> Teléfono * <input type="text" name="telefono" /><br/> Fax <input type="text" name="fax" /><br/> Web <input type="text" name="web" /><br/> <input type="submit" value="Enviar"/> </form> <div id="resultados"></div> </body> </html>