How can I change the current text style at the current position of the cursor without chnaging the whole div id's font style?
document.getElementById('message').style.fontWeight='bold';
This changes all the previous text styling in the textarea i have been trying to find a way aboutit but can't seem to find one??