I have a Tinder script that I run on Tinder web. When I open a match, Tinder shows a textarea element which I can type the message to send to the match, if I type the text in it, the send button will be available to click, like this:
But if I insert the text in this textarea element by using JS code like this:
document.querySelector("#c-582094868").value = 'my message'
the button is not available:
My goal with this question is to understand why in the second case the button doesn't get enabled, it should, because the textarea element is filled with a text. What else could I do?
OBS1: #c-582094868
represents the textarea element in the DOM.
OBS2: I have tried already to set a value for the defaultValue
, text
, innerHTML
in the textarea element. None of them worked.