I want it to be visible when I click on another. I do this using jQuery, but I'm not sure about that. I wrote a script:
<script type="text/javascript"> $(document).ready(function () { $('.visiblePanel').on('click', function () { $('.invisiblePanel').toggle(); }); }); </script>
The layout I made through C #:
Panel visiblePanel = new Panel(); visiblePanel.Style.Add("background-color", "red"); visiblePanel.CssClass = "visiblePanel"; Panel invisiblePanel = new Panel(); invisiblePanel.CssClass = "invisiblePanel";
Of course, this did not work. But also get the error: 
Without a script, everything is fine. I tried disabling Just My Code and got the following:
Really, I googled what to do, but to no avail. Could you help me?
PS On jsfiddle.net my script is working. http://jsfiddle.net/ZMxg8/
PPS: the problem is not in the script! What happened to VS? What does "call stack contain only external code" mean ???
source share