Is there a way to add bullet points to an HTML textarea?
I want to add a simple feature where a bullet point is added for every line in a text area (similar to a list bu
Just use the hexidecimal unicode value: \u2022 . So you might add bullets to new lines in this manner:
$textarea.val($textarea.val().replace(/\n/g,"\n\u2022").replace(/\r/g,"\r\u2022"))