Hello! I am new to jQuery. My problem is, how can I make multiple jQuery slideDown() Method and when I click on the other option, the first option will slideUp and at the same time the second option will slideDown. I don't know but is it possible? Because I've been trying lately how to create multiple jQuery slideDown() Method but it doesn't seem to work :/
Sorry about my English. So, here's my codes which displays single jQuery slideDown() Method with sub-option in it.
- <!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
<style type="text/css">
#panel,#flip
{
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
}
#panel
{
padding:50px;
display:none;
}
</style>
</head>
<body>
<div id="flip">Teacher Information</div>
<div id="panel"><a href=#>Add Teacher Profile</a><br/>
<a href=#>Add Teacher Account</a></div>
</body>
</html>