You could use css to do the work on the text and use a simple click state js script. -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Scott Blanchard Sent: Thursday, July 15, 2004 4:57 PM To: thelist at lists.evolt.org Subject: [thelist] need js function to toggle uppercase lowercase of selection I have a browser-based text editor (contenteditable), and would like to enable a keyboard shortcut to toggle the current selection's text to upper/lowercase. Any suggestions? -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt !