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
What about in one single line...
$('#txtSample').focus().val($('#txtSample').val());
This line works for me.