wizard-control

jQuery in update panel not successfully adding cssclass after panel refresh

妖精的绣舞 提交于 2019-12-12 00:44:12
问题 I have a div, which when clicked, displays a hidden asp:textbox via the following jQuery. function BindEvents() { $(document).ready(function () { $("#showtextbox").click(function () { $("#TextBox1").removeClass("hidden"); $("#TextBox1").addClass("showInline"); }); This works fine, except after the update panel is refreshed. After it is refreshed, when clicking “showtextbox” the textbox remains hidden. I know that the jQuery is running because it is hit when debugging. Here is my code.