June 21, 2024


Welcome to the core

Change Reportal Label based on Text in Div

This will show you how to change the text label inside a div on the page based on another string on the page.

First it’s getting all Div elements and then looking into the innerHTML for the word “open”.

If its found change the background to red – this is used to help figure out which element you are targetting.

Then will change the label to ‘Cleanliness’

Copyright © All rights reserved. | Newsphere by AF themes.