What is wrong here?

<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link type="text/css" href="css/cupertino/jquery-ui-1.8.13.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#form1").submit(function(){ var options = { target: "#1", status: $("#1").html('<img src="image/loading.gif" />'), success: function() { $('#1').fadeIn('fast'); }; $(this).ajaxSubmit(options); } return false; }); }); </head> <body> </script> <div id='1'> </div> <form id="form1" action='md5.php'> <input type="text" name="a"> <input type="submit" value="test"> </form> </body> </html> 
  • one
    Author, you read my answer to this question in your previous topic? And why there was a duplicate of the topic, they could have put their modified code there! - metazet

1 answer 1

 $('#form1').submit(function(e){ // пишем "загрузка" $(this).load( // ну или $('#1').load(...). $('#form1').attr('action'), {a: $('#form1 input[name="a"]').val()}, function(){ // загрузилось! } ); e.preventDefault(); return false; }); 

Joukweri and nothing else. And rename # 1 at least to # div1, because id must start with a letter.
http://www.w3schools.com/tags/att_standard_id.asp