Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <script src="jquery.js" type="text/javascript"></script>
- </head>
- <script>
- function test(result)
- {
- $.ajax({
- type:'POST',
- url:'test.php',
- data:{sort:id},
- success:function(data){
- $('#res').html(data)
- }
- })
- }
- </script>
- <a href="#" onclick="test('text')">link</a>
- <div id="res">
- <?php
- if (isset($_POST['result'])) {
- echo $_POST['result'];
- ?>
- </div>
Add Comment
Please, Sign In to add comment