//<input type="text" value="B01" id="MYINPUT"> $("#MYINPUT").select(function(e){ var selSt=$(this)[0].selectionStart; var selNd=$(this)[0].selectionEnd; if (selSt<3) { $(this)[0].setSelectionRange(3, selNd); } });
//<input type="text" value="B01" id="MYINPUT"> $("#MYINPUT").select(function(e){ var selSt=$(this)[0].selectionStart; var selNd=$(this)[0].selectionEnd; if (selSt<3) { $(this)[0].setSelectionRange(3, selNd); } });