Page 1 of 1

Invoke a element.hide(); before a page load.

Posted: Sun May 01, 2016 8:32 pm
by Samuel Jacob O'Connell

Hi,

I am attempting to hide a button on page load using the element.hide(); javascript. Rather than just applying it to a page, I need to apply it to the page the user is going.

Let me know if you need me to clarify.
-Sam


Invoke a element.hide(); before a page load.

Posted: Mon May 02, 2016 8:46 am
by Illya Stepanov

Hi Samuel -

For such case just use CSS rule for an appropriate element:

pre
selector {
display: none;
}
/pre

-- the .hide() method is just a equivalent for the same rule in CSS.