The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hide Button, Hide Cancel Button on one page but no impact to Cancel on other pages
kshukers
post Jan 28 2020, 03:02 PM
Post #1





Group: Members
Posts: 2
Joined: 28-January 20
Member No.: 27,139



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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 28 2020, 03:21 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,648
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
kshukers
post Jan 28 2020, 05:45 PM
Post #3





Group: Members
Posts: 2
Joined: 28-January 20
Member No.: 27,139



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

Thanks again
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 01:04 AM