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 wh
The answer from scorpion9 works. Just to make it more clear see my code below,