I have a button and div on my page. Div is not visible initially and I want to use JQuery to make it visible whenever the user clicks a button.
Below is my code that makes div invisible when the document loads and then, when the button is clicked, makes it visiable again. it works in plain html but not with ASP.NET page. On ASP.NET page, as soon as I click the button, the div appears for a second and disappears rigth away. Can someone help me fix my code?
I tried using $('#div1').show() but it produces the same result
I also tried setting visibility to visible but to no avail