Using jQuery, I have implemented a functionality to hide a div using the hide()
method.
However, upon clicking a link, the div
is supposed to show but unexpectedly disappears after appearing briefly.
HTML Code Snippet
<div id="introContent">
<h1 id="introText">Welcome</h1>
<p id="introParagraph">I specialize in creating <strong>Responsive</strong>, <strong>Interactive</strong>, and <strong>Beautiful</strong> Mobile-friendly Websites.
Each project is unique and tailored to the client's needs, ensuring high-quality work at affordable prices.
Learn more about our Company and services.
</p>
</div>
jQuery Implementation
$(function() {
$("#introContent").hide();
$("#intro").click(function () { // $(#intro) refers to a link in the navigation bar
$("#introContent").show();
});
});