I have the following issue where I am getting the following error
Uncaught TypeError: $(...).setSelectionRange is not a function
The code works almost 99% of the time except in one situation, and I am not able to figure out why.
$(Id).setSelectionRange($(Id).val().length, $(Id).val().length);
$(Id).focus();