Using jQuery, how can I get the input element that has the caret's (cursor's) focus?
Or in other words, how to determine if an input has the caret's focus?
This question has been asked in a few different formats but I can't get any of the answers to work in my scenario.
I am using jQuery to implement command history when user hits up/down arrows. When up arrow …
I am trying to somewhat duplicate the "autocorrect" functionality seen in programs like Microsoft Office's Outlook.
For starters, anytime a user types "a " (the letter a and a space) at the beginning of a line I want to change that …