Hi; you has a lot of sintaxis errors; I have written your code again and now works fine:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jquery</title> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#newsletteranmeldung").submit(function(){ var email_result = $("#email").val(); var action_result = $("#aktion option:selected").val(); $.post("newsletter.php",{email: email_result, action:action_result }, function(data){ $("#ausgabe").load("newsletter.php"); }); return false; }); }); </script> </head> <body> <form action="" method="post" id="newsletteranmeldung"> <div id="ausgabe"><p> </p></div> <table> <tr> <td style="padding-right: 15px;">E-Mail:</td> <td><input id="email" name="email" size="35" maxlength="30" /></td> </tr> <tr> <td></td> <td> <select id="aktion"> <option value="0">in den Newsletter eintragen</option> <option value="1">Newsletter abbestellen</option> </select> </td> </tr> <tr> <td></td> <td><input type="submit" value="Go!" id="los" /></td> </tr> </table> </form> </body> </html> ******************* That's all; read and compare with yours: The jQuery is rewrite and I have added an 'id' in the input. Bye! On 27 feb, 16:34, Mario <sevenartwo...@googlemail.com> wrote: > Hello everybody, > > I tried some jQuery AJAX tutorials and got started with jQuery. Moving > further, I got stuck somewhere in my code and I don't know, why. What > I wanna do is simple: give an email address to a php script and > display the script's answer in my page without reloading. so this is > > what i wrote: > > <script type="text/javascript" src="jquery.js"></script> > <script type="text/javascript"> > $(document).ready(function() > � � � � { > � � � � $("#newsletteranmeldung").submit(function() > � � � � � � � � { > � � � � � � � � $.post("newsletter.php",{email: $("#email).val() > $("aktion").val()}, > function(){$("#ausgabe").load("newsletter.php")}); return false; > � � � � � � � � }); > � � � � }); > </script> > > <form action="" method="post" id="newsletteranmeldung"> > <div id="ausgabe"><p> </p></div> > <table> > > <tr> > <td style="padding-right: 15px;">E-Mail:</td> > <td><input name="email" size="35" maxlength="30" /></td> > </tr> > > <tr> > <td></td> > <td> > <select id="aktion"> > <option value="0">in den Newsletter eintragen</option> > <option value="1">Newsletter abbestellen</option> > </select> > </td> > </tr> > > <tr> > <td></td> > <td><input type="submit" value="Go!" id="los" /></td> > </tr> > </table> > </form>