Advertisement
Guest User

Untitled

a guest
Apr 10th, 2011
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <a href="#" id="getContent">Загрузить контент</a>
  2.     <div id="divContent"></div>
  3.     <script type="text/javascript">
  4.     $(document).ready(function(){
  5. $('#getContent').click(function(){
  6. $.ajax({
  7. url: "/advice.php",
  8. cache: false,
  9. beforeSend: function() {
  10. $('#divContent').html('Получаем контент');
  11. },
  12. success: function(html){
  13. $("#divContent").html(html);
  14. }
  15. });
  16. return false;
  17. });
  18. });
  19.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement