I have this code:
data=>{document.querySelector(
"#os11.html-widget.gauge svg text[font-size='10px'] tspan"
).innerHTML = data.text
I tried:
$("#os11.html-widget.gauge svg text[font-size='10px'] tspan").document.querySelector('innerHTML')
But I don't know how to adjust .action()
Any idea? Thanks.
CodePudding user response:
The jQuery equivalent of assigning to .innerHTML is using the .html() method.
data => $("#os11.html-widget.gauge svg text[font-size='10px'] tspan").html(data.text)
