Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140762

setSelectionRange is not working as expected

$
0
0

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();       

Viewing all articles
Browse latest Browse all 140762

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>