I have a div in my php page that uses jQuery to hide it once the page has loaded. But is there a way to hide it from the very start of loadup?
The reason I ask is because for …
THIS CODE UNDER HERE WORKS, you can read the answers under here - i edit this for future reference.
HTML:
<div><a href="#" id="btn">Show bank div and hide fancy div</a></…
I want to hide all child elements in a div.
And then show a specific one passed on to the function.
function subDisplay(name) {
$("#navSub").each(function() {
$(this).hide();
});
$(name).show();
}
then i call the function from an onmouse event …