I have what I think should be a simple problem but I keep running into walls. I am a relative newbie with JQuery so pointing me in the right direction would be greatly appreciated.
I have a page with a "calendar" view of textarea boxes. Basically it's 28-31 text area boxes laid out like a monthly calendar. Users enter text in any or all of the fields and then save the form. I want to allow simple formatting to text within these fields. Initially just being able to apply bold tags will be fine. Rather than making 31 little WYSIWYG editors I would like to have a master form BOLD button that will apply these tags to text that is selected regardless of which text area it is in. In trying to figure this out I have run across a few things. - JQuery has a select() event which will tell me when text has been selected but I then can't figure out how to manipulate it - I have seen straight Javascript examples of how to get selected text, but it doesn't seem to work if I don't know which texarea it is coming from. - When I click a button outside the textareas the textarea in question looses focus and the selection goes away Does anyone know how to solve this? It seems logical to me that JQuery would have a mechanism to tell me what text was selected and then apply tags to it, possibly using the wrap() method. Any help would be appreciated. Thanks! -Thomas

