Disable menu option and change hover cover

Hi,

I have a menu option with a submenu and would like to do several things -

  1. Change the hover color from white

  2. Disable an options depending on the page that is up e.g. if I am on the Add Order Page, I would like to disable that option.

  3. I am assuming that thisInstance.innerText is used to return the current page. What is the difference between innerText and outerText?

Thanks
Steve

Use CSS to change hover color and JavaScript to disable options by page. innerText gets text inside an element; outerText replaces the element.

Thanks.

played around and found that for the hover, if you click on State and select hover, you then change the background colour.

So no need for CSS.

1 Like