Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Hide Button

Posted by: kshukers Jan 28 2020, 03:02 PM

Hi All,

I am trying to hide the Cancel button on one page but not impact the other pages where cancel buttons exist. I am a novice so I was using

<style>
button#btn_cancel {
display: none;
}
</style>

The problem is that the Cancel button on all other pages also are hidden.

Thoughts?

Thanks!

Posted by: Christian J Jan 28 2020, 03:21 PM

QUOTE(kshukers @ Jan 28 2020, 09:02 PM) *

I am trying to hide the Cancel button on one page

Why not simply remove the button's HTML?

QUOTE
but not impact the other pages where cancel buttons exist.

Are the pages separate HTML files, or just one file where the content is changed by scripting?

QUOTE
I was using

<style>
button#btn_cancel {
display: none;
}
</style>

Should work, but only use it in the HTML file where the button you want to hide is.

Posted by: kshukers Jan 28 2020, 05:45 PM

Christian - Thank you very much. I added it to the HTML for that single page and worked fine.

Thanks again

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)