using the .click() to slide toggle 2 divs
<script type="text/javascript" src="jquery-1.8.0.js">
$(document).ready(function(){
$("#edit").hide();
$(".show").click(function(){
$("#info").slideToggle("slow");
$("#edit").slideToggle("slow");
});
});
</
script
>
As you can see, I have two divs with ids "info" and "edit" respectively and a button class called "show". Initially the #edit is hidden. Now on clicking the button, I want #edit to be shown and #info to be hidden. The code seems legit to me. I really don't understand why this isn't working. Please let me know if you figure out why or if you have any suggestions.
Thanks.
Atef Haque.