0

I'm trying to write a chrome extension. My aim is to change the text the user wrote after pressing the button

Firstly I use Jquery selector.

$('.deneme').html("MERHABA");

But there is no change. If I add console.log at the beginning of the line, I am getting the following output.

output

How can I change this span text?

Tuna
  • 1
  • 2
  • `Object(0)` means there was no element when your script ran ([more info](https://stackoverflow.com/q/23429203)). Use MutationObserver or setInterval to wait for the element. – wOxxOm May 26 '22 at 10:48
  • @wOxxOm `asdsadasd` that is my span elements I want to change "asdsadasd" – Tuna May 26 '22 at 11:05

0 Answers0