I have an html page with the following element:
<span class="emojitext ellipsify" dir="ltr" data-reactid=".0.0:$main.4.3.0.0.0.$393382905560@c=1us.$393382905560@c=1us.0.1.1.0.$status"> How are you? </span> I'm trying to get it's content with this selector
message = $('span.emojitext').find('[data-reactid=".0.0:$main.4.3.0.0.0.$393382905560@c=1us.$393382905560@c=1us.0.1.1.0.$status"]').html(); console.log(message); But it returns undefined. At first sight my code looks correct, even by looking at other questions on SO, hence i cannot understand why it's not returning its content which should be How are you?
Any clue?