delay of trigger jquery

delay of trigger jquery

Good day,

I am having problem., i dont know if its from jquery or from my server side script. but once i comment out my jquery script it runs OK, but my jquery runs OK also, the problem that i encounter is that once i click on my table_container the sample alert will pop up on me. that's what i wanted and i click on the ok of that alert my page should have search based on the content of the table_container..is there any delay between the jquery script and C# script?


here is my code

<script type="text/javascript">
                         $(document).ready(function () {
                             $("#<%=btnUp.ClientID%>").click(function () { 
                               alert("sample")
                                    });
                             $("#table_container").change(function () {
                                 $("#<%=btnUp.ClientID%>").trigger("click");
       });
   });
   </script>