I am having issues hiding and showing specific text, specifically "picked" and "show_hidden". In this task I must make picked hide and then be able to click on "should" to show the picked again. Any help would be greatly appreciated:)
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Coding Tasks</title>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$("a").click(function() {
$("#picked").toggle();
});
});
$("a").click(function() {
$("#show_hidden").toggle();
});
</script>
<style>
.important {
font-weight: bold;
font-size: xx-large;
}
.set_colour {
color: blue;
}
.test
{
width: 500px;
}
div
{
padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; margin-top: 3px; margin-right: 3px; margin-bottom: 3px; margin-left: 3px; border-top-color: navy; border-right-color: navy; border-bottom-color: navy; border-left-color: navy; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-left-style: solid; border-right-style: solid; border-top-style: solid; border-bottom-style: solid; height:200px;
}
</style>
</head>
<body>
<p>Name: George Bob</p>
<div>
<p class="test">Test 1: Hide and Show</p>
<p class="picked">When you click on <a href="#">this</a> all paragraphs of class 'picked' should take 1.5sec and hide</p>
<p id="show_hidden"><a href="#">Should</a> should not hide and on click should show hidden</p>
<p class="picked">This should hide as well</p>
</div>
</body>
</html>