click event not triggered at the first click in jquery
<p>I have a main.php inside which another page (page1.php) is being called embedded in a div.
I am dynamically updating the a table in page1 when the page1.php is loaded.</p>

<p>Now when I call a function on the click event of the table the funtion is called but the control doesn't enters in the click event of the table which I have called inside the function.
However clicking the second time onwards the cotroll enters and works fine.</p>

<p>Following is the function in the js file</p>

<pre><code>function highlight_table()
{
$(#table tr).click(function(){
alert("here");
});
</code></pre>
