AJAX loaded anchors problem

AJAX loaded anchors problem

I load content to div using ajax. In that new loaded content are anchors which make another ajax requests, but they don't work. I suppose that it's caused by $(document).ready();
For example:

  1. $(document).ready(function(){
  2.    $('.dokosika').click(function(){
  3.        kod = $(this).attr('id');
  4.        pridajDoKosika(kod);
  5.       return false;
  6. });

  7. function pridajDoKosika(kod){
  8.    $.getJSON("/ajax/dokosika/"+kod,function(data){
  9.        obnovKosik(data.suma+",-",data.pocet);
  10.    });
  11. }

  12. function obnovKosik(suma,pocet){
  13.   $("#kosik .loader").fadeIn('fast');
  14.   $('#kosik .cena').fadeOut('slow');
  15.   $('#kosik .pocet-polozek').fadeOut('slow');
  16.   setTimeout(function(){
  17.     $('#kosik .cena').text(suma).fadeIn('slow');
  18.     $('#kosik .pocet-polozek').text(pocet).fadeIn('slow');
  19.     $("#kosik .loader").fadeOut('slow');
  20.     }, 500);
  21. }

  1. <table class="zoznam">
  2. <thead>
  3. <tr>
  4.     <th>
  5.         Name
  6.     </th>
  7.     <th>
  8.         Type
  9.     </th>
  10.     <th>
  11.         Length
  12.     </th>
  13.     <th>
  14.         Count
  15.     </th>
  16.     <th>
  17.         Price
  18.     </th>
  19.     <th>
  20.     </th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr class="riadok-c-0" id="PLU001N1">
  25.     <td class="tucne tmavomodre">
  26.         Dummy item
  27.     </td>
  28.     <td>
  29.         New licence
  30.     </td>
  31.     <td>
  32.         1 year
  33.     </td>
  34.     <td>
  35.         <input type="text" value="1" /> licence
  36.     </td>
  37.     <td class="tucne doprava cena">
  38.         1249,-
  39.     </td>
  40.     <td class="tucne tmavomodre">
  41.         <a href="">refresh</a> | <a class="smazat" rel="0" href="">remove</a>
  42.     </td>
  43. </tr>
  44. <tr>
  45.     <td>
  46.     </td>
  47. </tr>
  48. <tr class="sucet">
  49.     <td class="doprava" colspan="6">
  50.         Price including VAT: <span class="suma">1498.8,-</span>
  51.     </td>
  52. </tr>
  53. </tbody>
  54. </table>
Anchor with class '.dokosika' in loaded content doesn't work as I want to .. What solve my problem ?