OiO.lk Blog javascript Changing the text of a span element with no Id
javascript

Changing the text of a span element with no Id


I am very new to this so please bear with me.

I’m trying to change the inner HTML of this span: My Team on page load.

I would like to change the "My Team" text to "My Event". I’ve been looking for hours and nothing seems to be working. Maybe it’s not possible? Like I said, I’m new and would not know otherwise.

Thank you!

I haven’t been able to try anything because almost all solutions mention using an Id and there is no Id assigned to this element. This code is hardcoded into the system I’m working in so I can’t change the HTML itself.



You need to sign in to view this answers

Exit mobile version