https://i.sstatic.net/a0C02.png
I want to use JavaScript or jQuery to separate a word and apply CSS colors for "Hear (blue)" and "Us (black)".
Below is the inspect element, and since I don't have a file to work on, I will use class names and IDs with inspect element.
For example:
$va = $("#section-56 .mid-content h1 span").text().split("");
alert($va);
How can I make "Hear text blue and Us text black"?
(The above code alert does not seem to be functioning correctly, and I am uncertain if it is accurate).
Here is how I need to extract and split the string.