I am facing an issue with a page containing a button that uses JavaScript to display the content of a div. I also have an ASP.net validator control that triggers a postback. When I debug the JavaScript in Firebug, the div remains visible; however, if I allow the page to run normally, the div is momentarily visible due to the JavaScript before being reset to invisible during the postback reload. How can I prevent this behavior from occurring?
Any suggestions would be greatly appreciated!