I have a <textarea> which I’m appending to dynamically using JS.
I’d like to format it so the header row being appended is bold:
some previous content...
NEW HEADER ROW TO BE MADE BOLD
New additional content...
...
So the header row would essentially be wrapped in a <strong> tag.
Without punctuation and using jQuery, this works for me:
In this snippet, ‘textbox’ is the id of the textarea and ‘example’ is the preview div.