This function hide HTML Elements.
$("#myhide").click(function(){
$("p").hide();
});
When we click on myhide id then paragraph will be hide
This function hide HTML Elements.
$("#myhide").click(function(){
$("p").hide();
});
When we click on myhide id then paragraph will be hide
This function show HTML Elements.
$("#myshow").click(function(){
$("p").show();
});
When we click on myshow id then paragraph will be show
This will do two work , Hide and Show HTML Element, if element is hide then toggle function will show, if element is show then toggle function will hide.
$("a").click(function(){
$("p").toggle();
});
we can fade visibility of HTML Elements.
$("a").click(function(){
$("#mydiv").fadeIn(3000);
});
When we click on anchor tag then this will fade element after 3seconds. where 3000 is parameter, we can also pass slow,fast
and without parameter.
we can fadeout visibility of HTML Elements.
$("a").click(function(){
$("#mydiv").fadeOut(3000);
});
When we click on anchor tag then this will fadeout element after 3seconds. where 3000 is parameter, we can also pass slow,fast
and without parameter.
The function slidedown the html element, means we can say this will
open html element in down direction.
$("#headdiv").click(function(){
$("#downdiv").slideDown();
});
in this example the when we click id headdiv then this will open
downdiv in down direction
The function slideup the html element, means we can say this will
open html element in up direction.
$("#headdiv").click(function(){
$("#updiv").slideUp();
});
in this example the when we click id headdiv then this will open
updiv in up direction
This function will show and hide html element by sliding method.
$("#headdiv").click(function(){
$("#mydiv").slideToggle();
});
in this example id headdiv will toggle the id mydiv