Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type='text/javascript'>
- $(document).ready( function(){ $(':not(#mystub)').click( function(){ $(this).remove(); });
- $('#sub').live('click', function(){
- $.post('ajax.php',
- {name: $('#personName').attr('value') },
- function(returnedData){
- $('#mystub').empty().append("<div id=specialdiv>"+ returnedData +"</div>");
- });
- });
- $('#closebutton').live('click', function(){
- $('#specialdiv').fadeOut();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement