<a href="#"> Link1 </a>
<div id="parent">
<div id="child1">
Here is the Child One
</div>
<div id="child2">
Here is the Child Two
</div>
</div>
How can i hide child1 div using jquery ?
UPDATE
I want to hide child1 on click of Link1
$('div#parent > div#child1').hide();
Above for hiding direct child of #parent.
For Click
$('YOURLINK').on('click',function()
{
$('div#parent > div#child1').hide();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With