As a beginner in HTML, jQuery, and CSS, I am attempting to create a navigation bar that will trigger a jQuery slidedown effect when clicked. Unfortunately, my current code is not producing the desired outcome. Below is a snippet of what I have implemented so far:
html:
<ul class="dropdown">
<li id="cl1"><a class="ab" href="#">About </a></li>
</ul>
css:
<div class="target" style="z-index:3;width:1000px;height:1000px;display:none;background-color:white;opacity:0.8;position:fixed;top:0px;left:0px;">
<img src="horse.jpg" alt="horse" />
</div>
jquery:
$(document).ready(function() {
$(".ab").click(function(){
$(".target").slideDown('slow', function());
});
});
more submenus follow...