a función @jQuery no se vincula a los elementos dom recién agregados

Aquí estáindex.html:

<head>
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
  <script type="text/javascript">

    $(document).ready(function() {
      $('.btn_test').click(function() { alert('test'); });
    });

    function add(){
      $('body').append('<a href=\'javascript:;\' class=\'btn_test\'>test</a>');
    }

  </script>
</head>
<body>
  <a href="javascript:;" class="btn_test">test1</a>
  <a href="javascript:;" onclick="add()">add</a>
</body>

Si hago clic entest1 enlace, muestraalert('test'), pero si hago clic enadd enlace luego haga clic entest, no muestra nada.

¿Podrías explicarlo?

Respuestas a la pregunta(13)

Su respuesta a la pregunta