Load page by id

Load page by id

Hey, new here and to Jquery so've just started learning...

What I'm trying to achieve now is that by clicking on a link, information should be shown. I'm using the .load method to get information and well I think it's almost working, probably one little thing missing...

So here's the code:
$(function() {
            $('a').click(function() {
                            
                             var get = $('#id');
                            
                     

                            
               $('<div id="content" />').load(get, function() {
                  $(this).hide()
                        .appendTo('#container')
                        .slideDown(1000);
                        
                  });
                  
                  return false;
            })
         });


My anchor tag
<a href="#" id="load.php">Load</a>

What I think i've done is that when a anchor tag is clicked I run a function where I put a value to get that corresponds with the value on the id of the anchor tag I clicked. Then I create a div and then I try to load the page but hey that's where it goes wrong. If I manually write in the adress it works and on other attempts it sometimes just loads the mainpage so it appears twice. I want it to be dynamic so I can click different links and recieve different data without having to create the same function multiply times and just change the adress...

Hope someone can help me or lead me in the right direction