Need help w/ toggling a DIV
Hi,
I'm a newbie with jQuery. I am trying to implement a simple toggle event for some "help" DIVs in my ASP.NET application. It was working fine but I soon discovered that ASP.NET postbacks interfered w/ my simple jQuery functions. I then learned about the live() function in the new version of jQuery. With that it now seems to be working, however, if I do an ASP.NET AJAX posback, my hidden DIV starts to show. How do I make sure that its show/hide state doesn't get affected by the postback?
Here's my simple jQuery
<script type="text/javascript">
$(document).ready(function() {
$('#divMyDiv1').hide();
$('#aShowHelpLink').live('click', (function() {
$('#divMyDiv1').toggle('slow')
}))
})
</script>