I want to style a certain character in a string via jQuery, but have no clue how to approach that. I have the following situation
<a href="" accesskey="i">Link</a>
Now i want to underline the character in the accesskey (so the 'i' in this case) in the clickable link. So the 'i' in 'Link' should be underlined
Does anybody know how?
My own approach would be:
JS Fiddle demo.
References:
attr().replace()html()