jquery ajax post success return data
问题 I can not get back my data, here is my code. where is the problem? Thanks. Index.php <script type="text/javascript"> jQuery(document).ready(function(){ $(".click").click(function(){ var value = $(this).val();// post each click value to another page $.ajax({ url: "post.php", dataType: "html", type: 'POST', //I want a type as POST data: "name="+value, success: function(data){ $("#result").data($data); } }); }); }); </script> <div id="result"></div> <a href="#" class="click">tim</a> <a href="#"