I think that this should be pretty easy but I\'m not quite sure how to wire things up.
I have a page on which the user can define a query. When done, the user enters a
Here's a low-tech technique that keeps all the script in your page template: add a $(document).ready()
function to the page that executes conditionally based on a page-level variable, like this ...
// In your button's click handler, set this.UserHasClicked to true
var userHasClicked = '<%= this.UserHasClicked %>' == 'True';
$(document).ready(function() {
if(userHasClicked) {
$(labelSelector).delay(2000).fadeOut(1000);
}
});