Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="#" id="getContent">Загрузить контент</a>
- <div id="divContent"></div>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#getContent').click(function(){
- $.ajax({
- url: "/advice.php",
- cache: false,
- beforeSend: function() {
- $('#divContent').html('Получаем контент');
- },
- success: function(html){
- $("#divContent").html(html);
- }
- });
- return false;
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement