Detect click event in table cell with in DIV's?

Detect click event in table cell with in DIV's?

My program retrieves a table via an ajax call and places it in the ocvfitems div below.

The first cell in every row is defined as: echo("<td class='tdclick'><a href='#'>$fnum</a>");

When the td is clicked I need the function to be called.  It worked before I created the table via ajax.  The table does display properly and the column is underlined as a href.  I believe that the first line of the function is the culprit but I can't seem to get it to work.

$(function() {
    $("#flightno").val($(this).text()); //.children("a").text());
    $("#lookup").hide();
    $("input[name='flightno']").focus();
    $("#lookup").trigger("click");
   });
  });

      echo("<div id=\"ocvflist\"");
        echo("<div id=\"ocvfitems\"");

        echo("</div>");     
      echo("</div>");  

Thanks.

Bill